app/django/views/static.py
changeset 323 ff1a9aa48cfd
parent 54 03e267d67478
--- a/app/django/views/static.py	Tue Oct 14 12:36:55 2008 +0000
+++ b/app/django/views/static.py	Tue Oct 14 16:00:59 2008 +0000
@@ -73,13 +73,16 @@
     <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
     <meta http-equiv="Content-Language" content="en-us" />
     <meta name="robots" content="NONE,NOARCHIVE" />
-    <title>Index of {{ directory|escape }}</title>
+    <title>Index of {{ directory }}</title>
   </head>
   <body>
-    <h1>Index of {{ directory|escape }}</h1>
+    <h1>Index of {{ directory }}</h1>
     <ul>
+      {% ifnotequal directory "/" %}
+      <li><a href="../">../</a></li>
+      {% endifnotequal %}
       {% for f in file_list %}
-      <li><a href="{{ f|urlencode }}">{{ f|escape }}</a></li>
+      <li><a href="{{ f|urlencode }}">{{ f }}</a></li>
       {% endfor %}
     </ul>
   </body>