summaryrefslogtreecommitdiff
path: root/templates/packages
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-12-03 13:29:06 -0600
committerDan McGee <dan@archlinux.org>2011-12-03 13:29:06 -0600
commitae00d10ff48a604e9cc9dd327046661e52ff2749 (patch)
tree05868392624178a28a179ff501b458d1e7e0eb7c /templates/packages
parent546012c8e0d9e757e4670dd14e41acb83eb4e997 (diff)
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>
Diffstat (limited to 'templates/packages')
-rw-r--r--templates/packages/files.html2
-rw-r--r--templates/packages/files_list.html (renamed from templates/packages/files-list.html)5
2 files changed, 3 insertions, 4 deletions
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>