summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/packages/details.html8
-rw-r--r--templates/packages/details_depend.html1
-rw-r--r--templates/packages/details_requiredby.html7
3 files changed, 9 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 %}
diff --git a/templates/packages/details_depend.html b/templates/packages/details_depend.html
index 0226dd25..8b6e85c9 100644
--- a/templates/packages/details_depend.html
+++ b/templates/packages/details_depend.html
@@ -9,6 +9,7 @@
{% else %}
{% pkg_details_link depend.pkg %}{{ depend.dep.depvcmp|default:"" }}
{% if depend.pkg.repo.testing %} <span class="testing-dep">(testing)</span>{% endif %}
+{% if depend.pkg.repo.staging %} <span class="staging-dep">(staging)</span>{% endif %}
{% endifequal %}
{% if depend.dep.optional %} <span class="opt-dep">(optional)</span>{% endif %}
{% if depend.dep.description %}- <span class="dep-desc">{{ depend.dep.description }}</span>{% endif %}
diff --git a/templates/packages/details_requiredby.html b/templates/packages/details_requiredby.html
new file mode 100644
index 00000000..c7697289
--- /dev/null
+++ b/templates/packages/details_requiredby.html
@@ -0,0 +1,7 @@
+{% load package_extras %}
+<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.pkg.repo.staging %}<span class="staging-dep">(staging)</span>{% endif %}
+{% if req.optional %}<span class="opt-dep">(optional)</span>{% endif %}
+</li>