diff options
author | Dan McGee <dan@archlinux.org> | 2012-08-04 22:28:53 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-08-04 22:28:53 +0200 |
commit | c51ffa07fc46eeab001b1e71ebc0cee1d408aaea (patch) | |
tree | 33474cf1c2e9b473c8af479a5bcf3d7f68a718ae /templates/packages/details_requiredby.html | |
parent | 4613f862d76b6ab5de7dc98021fa37341945a2c2 (diff) | |
download | archweb-c51ffa07fc46eeab001b1e71ebc0cee1d408aaea.tar.gz archweb-c51ffa07fc46eeab001b1e71ebc0cee1d408aaea.tar.xz |
Adjust depends & required by templates to spew less whitespace
Use the spaceless tag and structure the {% if %} blocks smartly so
spaceless actually works and we aren't outputting one blank line per if
statement.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/packages/details_requiredby.html')
-rw-r--r-- | templates/packages/details_requiredby.html | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/templates/packages/details_requiredby.html b/templates/packages/details_requiredby.html index 24f8bbb..f498bd5 100644 --- a/templates/packages/details_requiredby.html +++ b/templates/packages/details_requiredby.html @@ -1,9 +1,8 @@ -{% 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> +{% load package_extras %}{% spaceless %}<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 %} |