diff options
author | Georgy Redkozubov <georgy.redkozubov@linaro.org> | 2012-08-26 12:39:18 +0400 |
---|---|---|
committer | Georgy Redkozubov <georgy.redkozubov@linaro.org> | 2012-08-26 12:39:18 +0400 |
commit | 1c0cc6b35d9000a1f599ae3c07a6da708065d27a (patch) | |
tree | fda9c22c1befa82300a4de29622952cf0504e4ea /templates | |
parent | 894fea747edea6be8d12d30964cd868eb64fb27c (diff) |
Fixed dir template to produce page source as it did apache prior to switching to django-based server.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/dir_template.html | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/templates/dir_template.html b/templates/dir_template.html index b2750c5..5504e49 100644 --- a/templates/dir_template.html +++ b/templates/dir_template.html @@ -4,7 +4,7 @@ {{ header_content|safe }} <table> <tr> - <th></th><th>Name</th><th>License</th><th>Last modified</th><th>Size</th> + <th></th><th>Name</th><th>Last modified</th><th>Size</th><th>License</th> <tr><th colspan="5"><hr></th> </tr> {% if up_dir != None %} @@ -20,11 +20,7 @@ {% endif %} {% for value in dirlist %} - <tr> - <td> - <img src="{{ STATIC_URL }}/static/{{ value.type }}.png" alt="{{ value.type }}"/> - </td> - <td><a href="{{ value.url }}">{{ value.name }}</a></td> + <tr><td valign="top"><img src="{{ STATIC_URL }}/static/{{ value.type }}.png" alt="{{ value.type }}"/></td><td><a href="{{ value.url }}">{{ value.name }}</a></td><td align="right">{{ value.mtime }} </td><td align="right"> {% if value.type != 'folder' %}{{ value.size }}{% endif %}</td> <td> {% if value.license_digest_list == "OPEN" %} <i>open</i> @@ -34,8 +30,6 @@ {% endfor %} {% endif %} </td> - <td>{{ value.mtime }}</td> - <td>{% if value.type != 'folder' %}{{ value.size }}{% endif %}</td> </tr> {% endfor %} </table> |