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>
This commit is contained in:
Dan McGee 2010-04-02 17:53:33 -05:00
parent 5c7d507eea
commit 5fb2fca70a
2 changed files with 12 additions and 12 deletions

View File

@ -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 %}

View File

@ -6,7 +6,9 @@ <h2 class="title">{{ pkg.pkgname }} {{ pkg.pkgver }}-{{ pkg.pkgrel }}</h2>
<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 %}