]> arthur.barton.de Git - bup.git/blob - lib/web/list-directory.html
b5b68ae5b8457afe3bcd402f33390e1d582074c7
[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     <style type="text/css">
7       body, table { font-family: sans-serif }
8       #breadcrumb { margin: 10px 0; }
9       .dir-name { text-align: left }
10       .dir-size { text-align: right }
11     </style>
12   </head>
13   <body>
14     <div id="breadcrumb">
15       {% for (display, part_path) in breadcrumbs[:-1] %}
16         <a href="{{ url_escape(part_path) }}">{{ escape(display) }}</a> /
17       {% end %}
18       <strong>{{ escape(breadcrumbs[-1][0]) }}</strong>
19     </div>
20     {% if files_hidden %}
21     <div id="message">
22       {% if hidden_shown %}
23       <a href=".">Hide hidden files</a>
24       {% else %}
25       <a href="?hidden=1">Show hidden files</a>
26       {% end %}
27     </div>
28     {% end %}
29     <table>
30       <tr>
31         <th class="dir-name">Name</th>
32         <th class="dir-size">Size</th>
33       </tr>
34       {% for (display, link, size) in dir_contents %}
35         <tr>
36           <td class="dir-name"><a href="{{ url_escape(link) }}">{{ escape(display) }}</a></td>
37           <td class="dir-size">{% if size != None %}{{ size }}{% else %}&nbsp;{% end %}</td>
38         </tr>
39       {% end %}
40     </table>
41   </body>
42 </html>
43