summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-08-09 23:36:04 -0500
committerDan McGee <dan@archlinux.org>2011-08-09 23:36:04 -0500
commitb158cdedb5510becc39cc4ab9baf6eddb38c8389 (patch)
tree1ba40319813d5ecf828cfa113bfb4601e3541810 /templates
parentd14e80e2f04edb2f52811dba805a7ed2aa680fab (diff)
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>
Diffstat (limited to 'templates')
-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 8e3c0022..a3f2cef4 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 %}