]> arthur.barton.de Git - bup.git/blob - lib/web/list-directory.html
Enable static resources. Move css to external file.
[bup.git] / lib / web / list-directory.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3     <head>
4         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5         <title>Directory listing for {{ escape(path) }}</title>
6         <link rel="stylesheet" href="/static/styles.css" />
7     </head>
8     <body>
9         <div id="breadcrumb">
10             {% for (display, part_path) in breadcrumbs[:-1] %}
11             <a href="{{ part_path }}">{{ display }}</a> /
12             {% end %}
13             <strong>{{ breadcrumbs[-1][0] }}</strong>
14         </div>
15         {% if files_hidden %}
16         <div id="message">
17             {% if hidden_shown %}
18                 <a href=".">Hide hidden files</a>
19             {% else %}
20                 <a href="?hidden=1">Show hidden files</a>
21             {% end %}
22         </div>
23         {% end %}
24         <table>
25             <tr>
26                 <th class="dir-name">Name</th>
27                 <th class="dir-size">Size</th>
28             </tr>
29             {% for (display, link, size) in dir_contents %}
30             <tr>
31                 <td class="dir-name"><a href="{{ link }}">{{ display }}</a></td>
32                 <td class="dir-size">{% if size != None %}{{ size }}{% else %}&nbsp;{% end %}</td>
33             </tr>
34             {% end %}
35         </table>
36     </body>
37 </html>