summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-08-10 06:36:04 +0200
committerDan McGee <dan@archlinux.org>2011-08-10 06:36:04 +0200
commitb158cdedb5510becc39cc4ab9baf6eddb38c8389 (patch)
tree1ba40319813d5ecf828cfa113bfb4601e3541810
parentd14e80e2f04edb2f52811dba805a7ed2aa680fab (diff)
downloadarchweb-b158cdedb5510becc39cc4ab9baf6eddb38c8389.tar.gz
archweb-b158cdedb5510becc39cc4ab9baf6eddb38c8389.tar.xz
Link package provisions if available
Rather than just the blank 'virtual' text we used to have in the dependencies listing on the package page. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--templates/packages/details.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/packages/details.html b/templates/packages/details.html
index 8e3c002..a3f2cef 100644
--- a/templates/packages/details.html
+++ b/templates/packages/details.html
@@ -158,7 +158,10 @@
<ul>
{% for depend in deps %}
{% ifequal depend.pkg None %}
- <li>{{ depend.dep.depname }} <span class="virtual-dep">(virtual)</span></li>
+ {% if depend.providers %}
+ <li>{{ depend.dep.depname }} <span class="virtual-dep">({% multi_pkg_details depend.providers %})</span></li>
+ {% else %}<li>{{ depend.dep.depname }} <span class="virtual-dep">(virtual)</span></li>
+ {% endif %}
{% else %}
<li>{% pkg_details_link depend.pkg %}{{ depend.dep.depvcmp|default:"" }}
{% if depend.pkg.repo.testing %}<span class="testing-dep">(testing)</span>{% endif %}