diff options
author | Dan McGee <dan@archlinux.org> | 2011-02-15 19:31:56 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-02-16 17:43:50 -0600 |
commit | 7f1c7b08227e49172734f09552ceae8bc1f685ad (patch) | |
tree | 79104fdca2aa1035a8ee8f42079314b50b27823a /templates/packages/details.html | |
parent | 4444f25d5cd9a9e1cb310a2d9c0b6b1ec1f55789 (diff) |
Read in optional deps and show in web interface
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/packages/details.html')
-rw-r--r-- | templates/packages/details.html | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/templates/packages/details.html b/templates/packages/details.html index 14b657e3..ac997184 100644 --- a/templates/packages/details.html +++ b/templates/packages/details.html @@ -159,16 +159,18 @@ {% if deps %} <ul> - {% for depend in deps %} - {% ifequal depend.pkg None %} - <li>{{ depend.dep.depname }} (virtual)</li> - {% else %} + {% for depend in deps %} + {% ifequal depend.pkg None %} + <li>{{ depend.dep.depname }} <span class="virtual-dep">(virtual)</span></li> + {% else %} <li><a href="{{ depend.pkg.get_absolute_url }}" - title="View package details for {{ depend.dep.depname }}">{{ depend.dep.depname }}</a> - {{ depend.dep.depvcmp }}{% if depend.pkg.repo.testing %} - <span class="testing-dep">(testing)</span>{% endif %}</li> - {% endifequal %} - {% endfor %} + title="View package details for {{ depend.dep.depname }}">{{ depend.dep.depname }}</a>{{ depend.dep.depvcmp|default:"" }} + {% if depend.pkg.repo.testing %}<span class="testing-dep">(testing)</span>{% endif %} + {% if depend.dep.optional %}<span class="opt-dep">(optional)</span>{% endif %} + {% if depend.dep.description %}<span class="dep-desc">{{ depend.dep.description }}</span>{% endif %} + </li> + {% endifequal %} + {% endfor %} </ul> {% endif %} @@ -184,9 +186,10 @@ {% if rqdby %} <ul> {% for req in rqdby %} - <li><a href="{{req.get_absolute_url}}" + <li><a href="{{ req.get_absolute_url }}" title="View package details for {{ req.pkgname }}">{{ req.pkgname }}</a> - {% if req.repo.testing %} (testing){% endif %}</li> + {% if req.repo.testing %}<span class="testing-dep">(testing)</span>{% endif %} + </li> {% endfor %} </ul> {% endif %} |