diff --git a/templates/partials/packages/details.html b/templates/partials/packages/details.html index 83c6d53b..05dc82c6 100644 --- a/templates/partials/packages/details.html +++ b/templates/partials/packages/details.html @@ -33,36 +33,34 @@ {% endif %} - {% if pkgbase.keywords.scalar() %} - - {{ "Keywords" | tr }}: - {% if is_maintainer %} - -
+ {{ "Keywords" | tr }}: + {% if request.user.has_credential("CRED_PKGBASE_SET_KEYWORDS", approved=[pkgbase.Maintainer]) %} + + +
+ + +
+
+ + {% else %} + + {% for keyword in pkgbase.keywords %} + -
- - -
- - - {% else %} - - {% for keyword in pkgbase.keywords %} -
- {{ keyword.Keyword }} - - {% endfor %} - - {% endif %} - - {% endif %} + {{ keyword.Keyword }} + + {% endfor %} + + {% endif %} + {% if licenses and licenses.scalar() and show_package_details %} {{ "Licenses" | tr }}: