summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2019-04-14 22:03:13 +0200
committerJelle van der Waa <jelle@vdwaa.nl>2019-04-14 22:03:13 +0200
commit4b4d50572973c858c17045249b3541dc7116c1c2 (patch)
tree308153d1fcb38cfc8c48ca79a028ef333ef10b96
parentc23a4c0d1138ff241824a74fec7566c8b30917ef (diff)
downloadarchweb-4b4d50572973c858c17045249b3541dc7116c1c2.tar.gz
archweb-4b4d50572973c858c17045249b3541dc7116c1c2.zip
Hide unflag all split packages for non-split packages
Fixes: #143
-rw-r--r--templates/packages/package_details.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/packages/package_details.html b/templates/packages/package_details.html
index 8cd64580..3738ae49 100644
--- a/templates/packages/package_details.html
+++ b/templates/packages/package_details.html
@@ -26,7 +26,9 @@
{% endif %}{% endwith %}
{% if perms.main.change_package %}
<li><a href="unflag/" title="Unflag this package">Click here to unflag</a></li>
+ {% if pkg.pkgname != pkg.pkgbase or pkg.split_packages %}
<li><a href="unflag/all/" title="Unflag all matching pkgbase">Click here to unflag all split packages</a></li>
+ {% endif %}
{% endif %}
{% else %}
<li><a href="flag/" title="Flag {{ pkg.pkgname }} as out-of-date">Flag Package Out-of-Date</a>