summaryrefslogtreecommitdiff
path: root/templates/packages/details_depend.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_depend.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_depend.html')
-rw-r--r--templates/packages/details_depend.html13
1 files changed, 0 insertions, 13 deletions
diff --git a/templates/packages/details_depend.html b/templates/packages/details_depend.html
deleted file mode 100644
index b89ffbfa..00000000
--- a/templates/packages/details_depend.html
+++ /dev/null
@@ -1,13 +0,0 @@
-{% load package_extras %}<li>{% ifequal depend.pkg None %}
-{% if depend.providers %}{{ depend.dep.name }}{{ depend.dep.comparison|default:"" }}{{ depend.dep.version|default:"" }} <span class="virtual-dep">({% multi_pkg_details depend.providers %})</span>
-{% else %}{{ depend.dep.name }}{{ depend.dep.comparison|default:"" }}{{ depend.dep.version|default:"" }} <span class="virtual-dep">(virtual)</span>
-{% endif %}{% else %}
-{% pkg_details_link depend.pkg %}{{ depend.dep.comparison|default:"" }}{{ depend.dep.version|default:"" }}
-{% if depend.pkg.repo.testing %} <span class="testing-dep"> (testing)</span>
-{% endif %}{% if depend.pkg.repo.staging %} <span class="staging-dep"> (staging)</span>
-{% endif %}{% endifequal %}
-{% if depend.dep.deptype == 'O' %} <span class="opt-dep"> (optional)</span>
-{% endif %}{% if depend.dep.deptype == 'M' %} <span class="make-dep"> (make)</span>
-{% endif %}{% if depend.dep.deptype == 'C' %} <span class="check-dep"> (check)</span>
-{% endif %}{% if depend.dep.description %} - <span class="dep-desc">{{ depend.dep.description }}</span>
-{% endif %}</li>