diff options
author | Dan McGee <dan@archlinux.org> | 2012-05-19 02:57:40 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-05-19 04:36:05 +0200 |
commit | 1625cd31c334b017688a8c30631ddad60fafd8f4 (patch) | |
tree | f9d5dcd6b5736a04e9ed1072b3fbb931d395a4f4 /templates/packages/details_relatedto.html | |
parent | 158be107e4ad682de0c9360658dfa5a72c21ee58 (diff) | |
download | archweb-1625cd31c334b017688a8c30631ddad60fafd8f4.tar.gz archweb-1625cd31c334b017688a8c30631ddad60fafd8f4.tar.xz |
Link to provides/conflicts/replacements if we can in details template
Use the newly implemented get_best_satisfier() method that is in the
abstract base class for all of these types.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/packages/details_relatedto.html')
-rw-r--r-- | templates/packages/details_relatedto.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/packages/details_relatedto.html b/templates/packages/details_relatedto.html new file mode 100644 index 0000000..1ffe288 --- /dev/null +++ b/templates/packages/details_relatedto.html @@ -0,0 +1,10 @@ +{% 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 %} |