summaryrefslogtreecommitdiff
path: root/templates/packages/details_requiredby.html
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2014-10-18 13:48:07 -0500
committerDan McGee <dan@archlinux.org>2014-10-18 13:48:07 -0500
commit2f19529c922172007ff3894ad0e0fca0b3e33f5b (patch)
tree7287ec88e69e2d09e6c73e6a9ba3a013b354c9ab /templates/packages/details_requiredby.html
parentf4a6eff33815a713b1141ea94a872bd7c6233699 (diff)
Convert details sub-tempates to Jinja2
This is a start at improving performance of rendering the package details page, our most-visited and slowest page on the production website. The Django template system is not very efficient due to our heavy use of broken out templates and pulling of various attributes and such on related packages. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/packages/details_requiredby.html')
-rw-r--r--templates/packages/details_requiredby.html8
1 files changed, 0 insertions, 8 deletions
diff --git a/templates/packages/details_requiredby.html b/templates/packages/details_requiredby.html
deleted file mode 100644
index 504a322f..00000000
--- a/templates/packages/details_requiredby.html
+++ /dev/null
@@ -1,8 +0,0 @@
-{% load package_extras %}<li>{% pkg_details_link req.pkg %}
-{% if req.name != pkg.pkgname %}<span class="virtual-dep"> (requires {{ req.name }})</span>
-{% endif %}{% if req.pkg.repo.testing %}<span class="testing-dep"> (testing)</span>
-{% endif %}{% if req.pkg.repo.staging %}<span class="staging-dep"> (staging)</span>
-{% endif %}{% if req.deptype == 'O' %}<span class="opt-dep"> (optional)</span>
-{% endif %}{% if req.deptype == 'M' %}<span class="make-dep"> (make)</span>
-{% endif %}{% if req.deptype == 'C' %}<span class="check-dep"> (check)</span>
-{% endif %}</li>