diff options
-rw-r--r-- | packages/views.py | 2 | ||||
-rw-r--r-- | templates/packages/files-list.html (renamed from templates/packages/files-ajax.html) | 0 | ||||
-rw-r--r-- | templates/packages/files.html | 9 |
3 files changed, 2 insertions, 9 deletions
diff --git a/packages/views.py b/packages/views.py index e95d4a2..8a2b4ec 100644 --- a/packages/views.py +++ b/packages/views.py @@ -186,7 +186,7 @@ def files(request, name='', repo='', arch=''): files = PackageFile.objects.filter(pkg=pkg).order_by('path') template = 'packages/files.html' if request.is_ajax(): - template = 'packages/files-ajax.html' + template = 'packages/files-list.html' return render_to_response(template, RequestContext(request, {'pkg':pkg,'files':files})) @permission_required('main.change_package') diff --git a/templates/packages/files-ajax.html b/templates/packages/files-list.html index 9b4c83a..9b4c83a 100644 --- a/templates/packages/files-ajax.html +++ b/templates/packages/files-list.html diff --git a/templates/packages/files.html b/templates/packages/files.html index dc0c64b..1d87246 100644 --- a/templates/packages/files.html +++ b/templates/packages/files.html @@ -3,14 +3,7 @@ {% block content %} <div class="box"> <h2 class="title">{{ pkg.pkgname }} {{ pkg.pkgver }}-{{ pkg.pkgrel }}</h2> - <div class="listing"> - <h4>Files:</h4> - <ul style="font-size:small;list-style:none"> - {% for file in files %} - <li>{{ file.path }}</li> - {% endfor %} - </ul> - </div> + {% include "packages/files-list.html" %} </div> {% endblock %} |