From ffa7ea1b1f276ba146be5a8533a1125ee947e433 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 27 Feb 2010 12:44:18 -0600 Subject: Show message if no files available Signed-off-by: Dan McGee --- templates/packages/details.html | 6 +++--- templates/packages/files-list.html | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/templates/packages/details.html b/templates/packages/details.html index 7e5216e3..94e9f161 100644 --- a/templates/packages/details.html +++ b/templates/packages/details.html @@ -103,9 +103,9 @@

Required By ({{rqdby|length}}):

Files:

- +

+ View File List +

diff --git a/templates/packages/files-list.html b/templates/packages/files-list.html index 9b4c83ad..d26a11e9 100644 --- a/templates/packages/files-list.html +++ b/templates/packages/files-list.html @@ -1,8 +1,12 @@

Files:

+ {% if files.count %}
    {% for file in files %}
  • {{ file.path }}
  • {% endfor %}
+ {% else %} +

No filelist available.

+ {% endif %}
-- cgit v1.2.3-54-g00ecf