diff options
author | Dan McGee <dan@archlinux.org> | 2010-02-27 12:44:18 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-02-27 13:36:58 -0600 |
commit | ffa7ea1b1f276ba146be5a8533a1125ee947e433 (patch) | |
tree | 8f1f75359edff85f6bc82445e9eac4009496a6db | |
parent | 8eff04788d0c62af01848a22a91efe74b87380b2 (diff) |
Show message if no files available
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | templates/packages/details.html | 6 | ||||
-rw-r--r-- | 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 @@ </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 9b4c83ad..d26a11e9 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> |