]> arthur.barton.de Git - bup.git/blob - lib/web/list-directory.html
Update base_version to 0.34~ for 0.34 development
[bup.git] / lib / web / list-directory.html
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[:-1] %}
13                 <a href="{{ part_path }}">{{ display }}</a> /
14                 {% end %}
15                 <strong>{{ breadcrumbs[-1][0] }}</strong>
16             </div>
17             {% if files_hidden %}
18             <div id="message">
19                 {% if hidden_shown %}
20                     <a href=".">Hide hidden files</a>
21                 {% else %}
22                     <a href="?hidden=1">Show hidden files</a>
23                 {% end %}
24             </div>
25             {% end %}
26             <table>
27                 <tr>
28                     <th class="dir-name">Name</th>
29                     <th class="dir-size">Size</th>
30                 </tr>
31                 {% for (display, link, size) in dir_contents %}
32                 <tr>
33                     <td class="dir-name">
34                       <a href="{% raw link %}">{{ display }}</a>
35                     </td>
36                     <td class="dir-size">{% if size != None %}{{ size }}{% else %}&nbsp;{% end %}</td>
37                 </tr>
38                 {% end %}
39             </table>
40         </div>
41     </body>
42 </html>