From 1a4db3c7b9caed1653a14a3096f4c12e56dc54f8 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 21 Oct 2010 10:55:44 -0500 Subject: 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 --- templates/packages/files-list.html | 6 +++++- templates/packages/files.html | 3 +-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'templates') diff --git a/templates/packages/files-list.html b/templates/packages/files-list.html index c45e0f10..1c9ea635 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 %} +

Note: This file list was generated from a previous version +of the package; it may be out of date.

+{% endif %} {% if files.count %} {% else %} -

No file list available.

+

No file list available.

{% endif %} diff --git a/templates/packages/files.html b/templates/packages/files.html index ebdfb9cf..5e0ceb07 100644 --- a/templates/packages/files.html +++ b/templates/packages/files.html @@ -6,9 +6,8 @@

Package File List: {{ pkg.pkgname }} {{ pkg.pkgver }}-{{ pkg.pkgrel }}

-

Back to Package

-
+

Back to Package

{% include "packages/files-list.html" %}
-- cgit v1.2.3-54-g00ecf