diff options
author | Dan McGee <dan@archlinux.org> | 2010-04-03 00:53:33 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-04-03 00:53:33 +0200 |
commit | 5fb2fca70a13181ae8aaec60e855693114b1198f (patch) | |
tree | ad073c82f2a0a32c78432f5f4e284f653feb52c0 | |
parent | 5c7d507eea116d9c86216b35aadb9d181f471ccd (diff) | |
download | archweb-5fb2fca70a13181ae8aaec60e855693114b1198f.tar.gz archweb-5fb2fca70a13181ae8aaec60e855693114b1198f.tar.xz |
Fix filelists AJAX replacement
We were double nesting the filelist div. Have the AJAX call only return the
contents and not the enclosing div.
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | templates/packages/files-list.html | 22 | ||||
-rw-r--r-- | templates/packages/files.html | 2 |
2 files changed, 12 insertions, 12 deletions
diff --git a/templates/packages/files-list.html b/templates/packages/files-list.html index d26a11e..dee18ec 100644 --- a/templates/packages/files-list.html +++ b/templates/packages/files-list.html @@ -1,12 +1,10 @@ -<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> +<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 %} diff --git a/templates/packages/files.html b/templates/packages/files.html index e8a8fac..2f95106 100644 --- a/templates/packages/files.html +++ b/templates/packages/files.html @@ -6,7 +6,9 @@ <p style="padding: 10px 20px;"> <a href="{{ pkg.get_absolute_url }}">Back to Package</a> </p> + <div class="listing" id="filelist"> {% include "packages/files-list.html" %} + </div> </div> {% endblock %} |