summaryrefslogtreecommitdiff
path: root/templates/packages/files-list.html
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-20 01:09:20 -0500
committerDan McGee <dan@archlinux.org>2011-06-20 01:09:20 -0500
commit92e13e0670661a542db646c668780cb4620c0b13 (patch)
tree8025c6587ee03241bcf4517c1e9ca00d2de1a52b /templates/packages/files-list.html
parent00eb8f426a8ddb905fcf8b241eb29b687b9db8ed (diff)
Differentiate between no filelist and empty filelist
We had these two cases munged together before; some packages have seen filelist updates but simply don't have any files ('firefox-i18n' for example). Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/packages/files-list.html')
-rw-r--r--templates/packages/files-list.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/packages/files-list.html b/templates/packages/files-list.html
index bb89b663..95a85d24 100644
--- a/templates/packages/files-list.html
+++ b/templates/packages/files-list.html
@@ -2,12 +2,16 @@
<p class="message">Note: This file list was generated from a previous version
of the package; it may be out of date.</p>
{% endif %}
-{% if files.count %}
+{% if pkg.files_last_update %}
+{% if files|length %}
<ul>
{% for file in files %}
<li>{{ file.directory }}{{ file.filename|default:'' }}</li>
{% endfor %}
</ul>
{% else %}
+<p class="message">Package has no files.</p>
+{% endif %}
+{% else %}
<p class="message">No file list available.</p>
{% endif %}