diff options
author | Dan McGee <dan@archlinux.org> | 2011-12-03 20:29:06 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-12-03 20:29:06 +0100 |
commit | ae00d10ff48a604e9cc9dd327046661e52ff2749 (patch) | |
tree | 05868392624178a28a179ff501b458d1e7e0eb7c | |
parent | 546012c8e0d9e757e4670dd14e41acb83eb4e997 (diff) | |
download | archweb-ae00d10ff48a604e9cc9dd327046661e52ff2749.tar.gz archweb-ae00d10ff48a604e9cc9dd327046661e52ff2749.tar.xz |
Rename files list template for consistency
We use underscores in all other templates.
Also remove some of the generated whitespace in the template which is
noticeable in very large package lists.
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | packages/views/__init__.py | 2 | ||||
-rw-r--r-- | templates/packages/files.html | 2 | ||||
-rw-r--r-- | templates/packages/files_list.html (renamed from templates/packages/files-list.html) | 5 |
3 files changed, 4 insertions, 5 deletions
diff --git a/packages/views/__init__.py b/packages/views/__init__.py index b420ce6..13ad0c7 100644 --- a/packages/views/__init__.py +++ b/packages/views/__init__.py @@ -179,7 +179,7 @@ def files(request, name, repo, arch): } template = 'packages/files.html' if request.is_ajax(): - template = 'packages/files-list.html' + template = 'packages/files_list.html' return direct_to_template(request, template, context) def details_json(request, name, repo, arch): diff --git a/templates/packages/files.html b/templates/packages/files.html index a564f72..6524fe9 100644 --- a/templates/packages/files.html +++ b/templates/packages/files.html @@ -9,7 +9,7 @@ <div id="metadata"> <p><a href="{{ pkg.get_absolute_url }}">Back to Package</a></p> <p>Package has {{ files_count }} file{{ files_count|pluralize }} and {{ dir_count }} director{{ dir_count|pluralize:"y,ies" }}.</p> - {% include "packages/files-list.html" %} + {% include "packages/files_list.html" %} </div> </div> diff --git a/templates/packages/files-list.html b/templates/packages/files_list.html index 95a85d2..156d858 100644 --- a/templates/packages/files-list.html +++ b/templates/packages/files_list.html @@ -5,9 +5,8 @@ of the package; it may be out of date.</p> {% if pkg.files_last_update %} {% if files|length %} <ul> - {% for file in files %} - <li>{{ file.directory }}{{ file.filename|default:'' }}</li> - {% endfor %} +{% for file in files %} +<li>{{ file.directory }}{{ file.filename|default:'' }}</li>{% endfor %} </ul> {% else %} <p class="message">Package has no files.</p> |