diff options
author | Dan McGee <dan@archlinux.org> | 2012-10-01 01:18:19 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-10-01 01:18:19 +0200 |
commit | febf5e92233738198107a69f66c9f3443b4306c7 (patch) | |
tree | 0c8e069360e26314d498251e15cf672743f8a03b /templates/packages/details_relatedto.html | |
parent | 58ecb90c3f0254cdfab290234d309cad14a17723 (diff) | |
download | archweb-febf5e92233738198107a69f66c9f3443b4306c7.tar.gz archweb-febf5e92233738198107a69f66c9f3443b4306c7.tar.xz |
Collapse long lists of related packages
Just like we did with the rows of depends and required by, collapse down
conflicts, provides, etc. comma-separated lists if they grow too large.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/packages/details_relatedto.html')
-rw-r--r-- | templates/packages/details_relatedto.html | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/templates/packages/details_relatedto.html b/templates/packages/details_relatedto.html index 1ffe288..e14375d 100644 --- a/templates/packages/details_relatedto.html +++ b/templates/packages/details_relatedto.html @@ -1,10 +1,2 @@ -{% load package_extras %} -{% for related in all_related %} -{% with related.get_best_satisfier as best_satisfier %} -{% ifequal best_satisfier None %} -{{ related.name }}{{ related.comparison|default:"" }}{{ related.version|default:"" }}{% if not forloop.last %}, {% endif %} -{% else %} -{% pkg_details_link best_satisfier %}{{ related.comparison|default:"" }}{{related.version|default:"" }}{% if not forloop.last %}, {% endif %} -{% endifequal %} -{% endwith %} -{% endfor %} +{% load package_extras %}{% for related in all_related %}{% with related.get_best_satisfier as best_satisfier %}<span class="related">{% ifequal best_satisfier None %}{{ related.name }}{% else %}{% pkg_details_link best_satisfier %}{% endifequal %}{{ related.comparison|default:"" }}{{ related.version|default:"" }}{% if not forloop.last %}, {% endif %}</span> +{% endwith %}{% endfor %} |