diff options
-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 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> |