fix(package/pkgbase view): include comaintainers in Maintainer field

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2022-01-20 09:15:20 -08:00
parent 2c4f4155d6
commit 62388b4161
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
3 changed files with 32 additions and 1 deletions

View file

@ -105,13 +105,16 @@
{% endif %}
</td>
</tr>
<tr>
<tr class="pkgmaint">
<th>{{ "Maintainer" | tr }}:</th>
<td>
{% if pkgbase.Maintainer %}
<a href="/account/{{ pkgbase.Maintainer.Username }}">
{{ pkgbase.Maintainer.Username }}
</a>
{% if comaintainers %}
({% for co in comaintainers %}<a href="{{ co.User | account_url }}">{{ co.User }}</a>{% endfor %})
{% endif %}
{% else %}
{{ pkgbase.Maintainer.Username | default("None" | tr) }}
{% endif %}