diff options
author | Dan McGee <dan@archlinux.org> | 2012-05-18 21:29:03 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-05-18 21:36:11 -0500 |
commit | 72a92102df4999dbcc370064707c9026d51c4fe7 (patch) | |
tree | 7fe5be4bb93cb677952923899b954cc59e1b5e11 /templates/packages | |
parent | cc44fdbea59596daf106e48acdb3f4137988d0d9 (diff) |
Switch to usage of new Depend object
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/packages')
-rw-r--r-- | templates/packages/details_depend.html | 6 | ||||
-rw-r--r-- | templates/packages/details_requiredby.html | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/packages/details_depend.html b/templates/packages/details_depend.html index 8b6e85c9..0cf2c36a 100644 --- a/templates/packages/details_depend.html +++ b/templates/packages/details_depend.html @@ -2,12 +2,12 @@ <li> {% ifequal depend.pkg None %} {% if depend.providers %} -{{ depend.dep.depname }} <span class="virtual-dep">({% multi_pkg_details depend.providers %})</span> +{{ depend.dep.name }}{{ depend.dep.comparison|default:"" }}{{ depend.dep.version|default:"" }} <span class="virtual-dep">({% multi_pkg_details depend.providers %})</span> {% else %} -{{ depend.dep.depname }} <span class="virtual-dep">(virtual)</span> +{{ depend.dep.name }}{{ depend.dep.comparison|default:"" }}{{ depend.dep.version|default:"" }} <span class="virtual-dep">(virtual)</span> {% endif %} {% else %} -{% pkg_details_link depend.pkg %}{{ depend.dep.depvcmp|default:"" }} +{% pkg_details_link depend.pkg %}{{ depend.dep.comparison|default:"" }}{{ depend.dep.version|default:"" }} {% if depend.pkg.repo.testing %} <span class="testing-dep">(testing)</span>{% endif %} {% if depend.pkg.repo.staging %} <span class="staging-dep">(staging)</span>{% endif %} {% endifequal %} diff --git a/templates/packages/details_requiredby.html b/templates/packages/details_requiredby.html index c7697289..ecc92b29 100644 --- a/templates/packages/details_requiredby.html +++ b/templates/packages/details_requiredby.html @@ -1,6 +1,6 @@ {% load package_extras %} <li>{% pkg_details_link req.pkg %} -{% if req.depname != pkg.pkgname %}<span class="virtual-dep">(requires {{ req.depname }})</span>{% endif %} +{% 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.optional %}<span class="opt-dep">(optional)</span>{% endif %} |