Debian Codegraph @

lib/web/list-directory.html

raw
1 {% comment This template expects the default xhtml autoescaping. %}
2 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
3 <html>
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6 <title>Directory listing for {{ path }}</title>
7 <link rel="stylesheet" href="/static/styles.css" />
8 </head>
9 <body>
10 <div id="wrapper">
11 <div id="breadcrumb">
12 {% for (display, part_path) in breadcrumbs %}
13 <a href="{{ part_path }}">{{ display }}</a> /
14 {% end %}
15 </div>
16 {% if files_hidden %}
17 <div id="message">
18 {% if hidden_shown %}
19 <a href=".">Hide hidden files</a>
20 {% else %}
21 <a href="?hidden=1">Show hidden files</a>
22 {% end %}
23 </div>
24 {% end %}
25 <table>
26 <tr>
27 <th class="dir-name">Name</th>
28 <th class="dir-size">Size</th>
29 </tr>
30 {% for (display, link, size) in dir_contents %}
31 <tr>
32 <td class="dir-name">
33 <a href="{% raw link %}">{{ display }}</a>
34 </td>
35 <td class="dir-size">{% if size is not None %}{{ size }}{% else %}&nbsp;{% end %}</td>
36 </tr>
37 {% end %}
38 </table>
39 </div>
40 </body>
41 </html>