summaryrefslogtreecommitdiffstats
path: root/templates/packages/files-list.html
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-10-21 17:55:44 +0200
committerDan McGee <dan@archlinux.org>2010-10-21 17:55:44 +0200
commit1a4db3c7b9caed1653a14a3096f4c12e56dc54f8 (patch)
tree71ddec887dd4f8fc74efaa57b46754ba7693e168 /templates/packages/files-list.html
parent4061ea44dd06f217eda6c4c5ad8a2b7f31563fdb (diff)
downloadarchweb-1a4db3c7b9caed1653a14a3096f4c12e56dc54f8.tar.gz
archweb-1a4db3c7b9caed1653a14a3096f4c12e56dc54f8.tar.xz
Show a message when filelist is out of date
This addresses FS#21394 and ensures that the website is less misleading when a package gets new files but they are not yet reflected in the shown list. 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 c45e0f1..1c9ea63 100644
--- a/templates/packages/files-list.html
+++ b/templates/packages/files-list.html
@@ -1,3 +1,7 @@
+{% if pkg.last_update > pkg.files_last_update %}
+<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 %}
<ul>
{% for file in files %}
@@ -5,5 +9,5 @@
{% endfor %}
</ul>
{% else %}
-<p>No file list available.</p>
+<p class="message">No file list available.</p>
{% endif %}