diff options
author | Dan McGee <dan@archlinux.org> | 2014-10-18 19:31:17 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2014-10-18 19:31:17 -0500 |
commit | 32a0075b59f3f692d8084a041d4a10c6298cdc15 (patch) | |
tree | bc5f312dbfa5ccbb31addeeb2e10b819d87e31b9 /templates/packages/details_relatedto.html.jinja | |
parent | 21b8ff5cf2b60f862e3fc3cfb43d8d8af0d6189f (diff) | |
parent | 0e90423fc09f53317992bbb024e82ef65728aa11 (diff) |
Merge branch 'jinja'
Diffstat (limited to 'templates/packages/details_relatedto.html.jinja')
-rw-r--r-- | templates/packages/details_relatedto.html.jinja | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/packages/details_relatedto.html.jinja b/templates/packages/details_relatedto.html.jinja new file mode 100644 index 00000000..955fdd37 --- /dev/null +++ b/templates/packages/details_relatedto.html.jinja @@ -0,0 +1,3 @@ +{% import 'packages/details_link.html.jinja' as details %}{% for related in all_related %}{% with best_satisfier = related.get_best_satisfier() %} +<span class="related">{% if best_satisfier == None %}{{ related.name }}{% else %}{{ details.details_link(best_satisfier) }}{% endif %}{{ related.comparison|default("") }}{{ related.version|default("") }}{% if not loop.last %}, {% endif %}</span> +{% endwith %}{% endfor %} |