app/django/views/static.py
changeset 323 ff1a9aa48cfd
parent 54 03e267d67478
equal deleted inserted replaced
322:6641e941ef1e 323:ff1a9aa48cfd
    71 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    71 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    72   <head>
    72   <head>
    73     <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    73     <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    74     <meta http-equiv="Content-Language" content="en-us" />
    74     <meta http-equiv="Content-Language" content="en-us" />
    75     <meta name="robots" content="NONE,NOARCHIVE" />
    75     <meta name="robots" content="NONE,NOARCHIVE" />
    76     <title>Index of {{ directory|escape }}</title>
    76     <title>Index of {{ directory }}</title>
    77   </head>
    77   </head>
    78   <body>
    78   <body>
    79     <h1>Index of {{ directory|escape }}</h1>
    79     <h1>Index of {{ directory }}</h1>
    80     <ul>
    80     <ul>
       
    81       {% ifnotequal directory "/" %}
       
    82       <li><a href="../">../</a></li>
       
    83       {% endifnotequal %}
    81       {% for f in file_list %}
    84       {% for f in file_list %}
    82       <li><a href="{{ f|urlencode }}">{{ f|escape }}</a></li>
    85       <li><a href="{{ f|urlencode }}">{{ f }}</a></li>
    83       {% endfor %}
    86       {% endfor %}
    84     </ul>
    87     </ul>
    85   </body>
    88   </body>
    86 </html>
    89 </html>
    87 """
    90 """