diff options
-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 b420ce60..13ad0c71 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 a564f726..6524fe93 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 95a85d24..156d8588 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> |