mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(fastapi): hide keywords when there are none or they can't be edited
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
363afff332
commit
20f5519b99
1 changed files with 29 additions and 27 deletions
|
@ -33,6 +33,7 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if pkgbase.keywords.count() or request.user.has_credential("CRED_PKGBASE_SET_KEYWORDS", approved=[pkgbase.Maintainer]) %}
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{ "Keywords" | tr }}:</th>
|
<th>{{ "Keywords" | tr }}:</th>
|
||||||
{% if request.user.has_credential("CRED_PKGBASE_SET_KEYWORDS", approved=[pkgbase.Maintainer]) %}
|
{% if request.user.has_credential("CRED_PKGBASE_SET_KEYWORDS", approved=[pkgbase.Maintainer]) %}
|
||||||
|
@ -61,6 +62,7 @@
|
||||||
</td>
|
</td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</tr>
|
</tr>
|
||||||
|
{% endif %}
|
||||||
{% if licenses and licenses.count() and show_package_details %}
|
{% if licenses and licenses.count() and show_package_details %}
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{ "Licenses" | tr }}:</th>
|
<th>{{ "Licenses" | tr }}:</th>
|
||||||
|
|
Loading…
Add table
Reference in a new issue