feat: Add "groups" to package details page

Signed-off-by: moson <moson@archlinux.org>
This commit is contained in:
moson 2023-11-22 19:30:43 +01:00
parent 765f989b7d
commit 9d5b9c4795
No known key found for this signature in database
GPG key ID: 4A4760AB4EE15296
3 changed files with 30 additions and 0 deletions

View file

@ -68,6 +68,12 @@
<td>{{ licenses.all() | join(', ', attribute='License.Name') }} </td>
</tr>
{% endif %}
{% if show_package_details and groups and groups.count() %}
<tr id="groups">
<th>{{ "Groups" | tr }}:</th>
<td>{{ groups.all() | join(', ', attribute='Group.Name') }} </td>
</tr>
{% endif %}
{% if show_package_details and conflicts and conflicts.count() %}
<tr id="conflicts">
<th>{{ "Conflicts" | tr }}:</th>