summaryrefslogtreecommitdiff
path: root/templates/packages/details.html
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-02-08 17:06:21 -0600
committerDan McGee <dan@archlinux.org>2012-02-18 19:17:56 -0600
commit77f38be3625395a5502cab7403c8e010171ce3f8 (patch)
tree3abe90341930bf646b423b4ad95532bf47bca173 /templates/packages/details.html
parent03a0d27971898592698dbb0c5948b93c6a3a4741 (diff)
Factor out requiredby details into a template
This is similar to the previous commit doing the same for depends. We also add a '(staging)' text for use down the road. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/packages/details.html')
-rw-r--r--templates/packages/details.html8
1 files changed, 1 insertions, 7 deletions
diff --git a/templates/packages/details.html b/templates/packages/details.html
index fd7bea4d..091e57ec 100644
--- a/templates/packages/details.html
+++ b/templates/packages/details.html
@@ -185,13 +185,7 @@
<h3 title="Packages that require {{ pkg.pkgname }}">
Required By ({{rqdby|length}})</h3>
{% if rqdby %}<ul>
- {% for req in rqdby %}
- <li>{% pkg_details_link req.pkg %}
- {% if req.depname != pkg.pkgname %}<span class="virtual-dep">(requires {{ req.depname }})</span>{% endif %}
- {% if req.pkg.repo.testing %}<span class="testing-dep">(testing)</span>{% endif %}
- {% if req.optional %}<span class="opt-dep">(optional)</span>{% endif %}
- </li>
- {% endfor %}
+ {% for req in rqdby %}{% include "packages/details_requiredby.html" %}{% endfor %}
</ul>{% endif %}
</div>
{% endwith %}