diff options
author | Dan McGee <dan@archlinux.org> | 2012-07-24 04:17:02 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-07-24 04:17:02 +0200 |
commit | 374bf53505480eebd675e95f975dc908c485a6fa (patch) | |
tree | 678dfd0e519a3d534cd21bc4ca44f9c932ee3d9a | |
parent | f81323ff6fe3416f7d50395658006223ae25c87c (diff) | |
download | archweb-374bf53505480eebd675e95f975dc908c485a6fa.tar.gz archweb-374bf53505480eebd675e95f975dc908c485a6fa.tar.xz |
Remove files list AJAX conditionals
Now that we just generate this list in JS, we don't need this separate
code.
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | packages/views/display.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/packages/views/display.py b/packages/views/display.py index 5332dc1..d5aa2c2 100644 --- a/packages/views/display.py +++ b/packages/views/display.py @@ -7,7 +7,6 @@ from django.http import HttpResponse, Http404 from django.shortcuts import get_object_or_404, redirect, render from django.utils.timezone import now from django.views.generic.simple import direct_to_template -from django.views.decorators.vary import vary_on_headers from main.models import Package, PackageFile, Arch, Repo from mirrors.utils import get_mirror_url_for_download @@ -132,7 +131,6 @@ def group_details(request, arch, name): return direct_to_template(request, 'packages/packages_list.html', context) -@vary_on_headers('X-Requested-With') def files(request, name, repo, arch): pkg = get_object_or_404(Package, pkgname=name, repo__name__iexact=repo, arch__name=arch) @@ -147,8 +145,6 @@ def files(request, name, repo, arch): 'dir_count': dir_count, } template = 'packages/files.html' - if request.is_ajax(): - template = 'packages/files_list.html' return direct_to_template(request, template, context) |