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:
parent
5c7d507eea
commit
5fb2fca70a
@ -1,12 +1,10 @@
|
|||||||
<div class="listing" id="filelist">
|
<h4>Files:</h4>
|
||||||
<h4>Files:</h4>
|
{% if files.count %}
|
||||||
{% if files.count %}
|
<ul style="font-size:small;list-style:none">
|
||||||
<ul style="font-size:small;list-style:none">
|
{% for file in files %}
|
||||||
{% for file in files %}
|
<li>{{ file.path }}</li>
|
||||||
<li>{{ file.path }}</li>
|
{% endfor %}
|
||||||
{% endfor %}
|
</ul>
|
||||||
</ul>
|
{% else %}
|
||||||
{% else %}
|
<p style="padding: 10px 20px;">No filelist available.</p>
|
||||||
<p style="padding: 10px 20px;">No filelist available.</p>
|
{% endif %}
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
|
@ -6,7 +6,9 @@ <h2 class="title">{{ pkg.pkgname }} {{ pkg.pkgver }}-{{ pkg.pkgrel }}</h2>
|
|||||||
<p style="padding: 10px 20px;">
|
<p style="padding: 10px 20px;">
|
||||||
<a href="{{ pkg.get_absolute_url }}">Back to Package</a>
|
<a href="{{ pkg.get_absolute_url }}">Back to Package</a>
|
||||||
</p>
|
</p>
|
||||||
|
<div class="listing" id="filelist">
|
||||||
{% include "packages/files-list.html" %}
|
{% include "packages/files-list.html" %}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user