diff options
author | Dan McGee <dan@archlinux.org> | 2011-02-15 20:00:33 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-02-16 17:43:50 -0600 |
commit | 8d3d05c7cb81611537aa34fa68e98e5e22b74847 (patch) | |
tree | 6ab657920b1c9d33b73175a44d40ce5d0f011522 /templates | |
parent | 7f1c7b08227e49172734f09552ceae8bc1f685ad (diff) |
Allow for optional info in required by display
We need to make our root object the PackageDepend rather than the Package to
get at this, so do a slight refactor on get_requiredby().
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/packages/details.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/packages/details.html b/templates/packages/details.html index ac997184..09b970cd 100644 --- a/templates/packages/details.html +++ b/templates/packages/details.html @@ -186,9 +186,10 @@ {% if rqdby %} <ul> {% for req in rqdby %} - <li><a href="{{ req.get_absolute_url }}" - title="View package details for {{ req.pkgname }}">{{ req.pkgname }}</a> - {% if req.repo.testing %}<span class="testing-dep">(testing)</span>{% endif %} + <li><a href="{{ req.pkg.get_absolute_url }}" + title="View package details for {{ req.pkg.pkgname }}">{{ req.pkg.pkgname }}</a> + {% if req.pkg.repo.testing %}<span class="testing-dep">(testing)</span>{% endif %} + {% if req.optional %}<span class="opt-dep">(optional)</span>{% endif %} </li> {% endfor %} </ul> |