summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-02-27 19:44:18 +0100
committerDan McGee <dan@archlinux.org>2010-02-27 20:36:58 +0100
commitffa7ea1b1f276ba146be5a8533a1125ee947e433 (patch)
tree8f1f75359edff85f6bc82445e9eac4009496a6db /templates
parent8eff04788d0c62af01848a22a91efe74b87380b2 (diff)
downloadarchweb-ffa7ea1b1f276ba146be5a8533a1125ee947e433.tar.gz
archweb-ffa7ea1b1f276ba146be5a8533a1125ee947e433.tar.xz
Show message if no files available
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates')
-rw-r--r--templates/packages/details.html6
-rw-r--r--templates/packages/files-list.html4
2 files changed, 7 insertions, 3 deletions
diff --git a/templates/packages/details.html b/templates/packages/details.html
index 7e5216e..94e9f16 100644
--- a/templates/packages/details.html
+++ b/templates/packages/details.html
@@ -103,9 +103,9 @@
</table>
<div class="listing" id="filelist">
<h4>Files:</h4>
- <ul style="font-size:small;list-style:none">
- <li><a id="filelink" href="files/">View File List</a></li>
- </ul>
+ <p style="padding: 10px 20px;">
+ <a id="filelink" href="files/">View File List</a>
+ </p>
</div>
</div>
<script type="text/javascript" src="/media/jquery-1.4.1.min.js"></script>
diff --git a/templates/packages/files-list.html b/templates/packages/files-list.html
index 9b4c83a..d26a11e 100644
--- a/templates/packages/files-list.html
+++ b/templates/packages/files-list.html
@@ -1,8 +1,12 @@
<div class="listing" id="filelist">
<h4>Files:</h4>
+ {% if files.count %}
<ul style="font-size:small;list-style:none">
{% for file in files %}
<li>{{ file.path }}</li>
{% endfor %}
</ul>
+ {% else %}
+ <p style="padding: 10px 20px;">No filelist available.</p>
+ {% endif %}
</div>