summaryrefslogtreecommitdiff
path: root/templates/packages
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-04-02 17:53:33 -0500
committerDan McGee <dan@archlinux.org>2010-04-02 17:53:33 -0500
commit5fb2fca70a13181ae8aaec60e855693114b1198f (patch)
treead073c82f2a0a32c78432f5f4e284f653feb52c0 /templates/packages
parent5c7d507eea116d9c86216b35aadb9d181f471ccd (diff)
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>
Diffstat (limited to 'templates/packages')
-rw-r--r--templates/packages/files-list.html22
-rw-r--r--templates/packages/files.html2
2 files changed, 12 insertions, 12 deletions
diff --git a/templates/packages/files-list.html b/templates/packages/files-list.html
index d26a11e9..dee18ecd 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 e8a8facf..2f951062 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 %}