summaryrefslogtreecommitdiff
path: root/packages/views.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-02-27 10:31:55 -0600
committerDan McGee <dan@archlinux.org>2010-02-27 13:36:58 -0600
commit7e1e5a5e8a2f3231d0878612508aba06f4397024 (patch)
treea8524109a7681c29d5bbeabbc03b8e706876457f /packages/views.py
parent1c073bea62ce854448d15bac05362ec8ecba763e (diff)
files: template reuse
Get rid of the copy/paste by including the sub-template. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages/views.py')
-rw-r--r--packages/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/views.py b/packages/views.py
index e95d4a2b..8a2b4ec3 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')