diff options
author | Dan McGee <dan@archlinux.org> | 2013-04-20 11:03:00 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2013-04-20 11:03:00 -0500 |
commit | 95ceb2a4a42093c9fd728e9e3d546943bc7b0b9d (patch) | |
tree | 0729e66c37eb9b19414a74cceeead86fd8d30420 /templates | |
parent | 81821d2b4791f18635b13394aa57fa0795acddaf (diff) |
Remove spaceless from depends and required by template fragments
This was a bit of premature optimization, and ends up slowing the page
generation a good amount since we have to run this ~400 times on some
packages with long depends or required by lists. Webserver compression
should handle this just fine and not result in too much page bloat.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/packages/details_depend.html | 5 | ||||
-rw-r--r-- | templates/packages/details_requiredby.html | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/templates/packages/details_depend.html b/templates/packages/details_depend.html index 4aa739c2..b89ffbfa 100644 --- a/templates/packages/details_depend.html +++ b/templates/packages/details_depend.html @@ -1,5 +1,4 @@ -{% load package_extras %}{% spaceless %}<li> -{% ifequal depend.pkg None %} +{% 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 %} @@ -11,4 +10,4 @@ {% 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>{% endspaceless %} +{% endif %}</li> diff --git a/templates/packages/details_requiredby.html b/templates/packages/details_requiredby.html index e8c713ac..504a322f 100644 --- a/templates/packages/details_requiredby.html +++ b/templates/packages/details_requiredby.html @@ -1,8 +1,8 @@ -{% load package_extras %}{% spaceless %}<li>{% pkg_details_link req.pkg %} +{% 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>{% endspaceless %} +{% endif %}</li> |