mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(python): don't show maintainer link for non logged in users
Show a plain maintainer text for non logged in users like the submitted, last packager. Closes #373
This commit is contained in:
parent
9648628a2c
commit
0e82916b0a
2 changed files with 7 additions and 4 deletions
|
@ -108,7 +108,7 @@
|
|||
<tr class="pkgmaint">
|
||||
<th>{{ "Maintainer" | tr }}:</th>
|
||||
<td>
|
||||
{% if pkgbase.Maintainer %}
|
||||
{% if request.user.is_authenticated() and pkgbase.Maintainer %}
|
||||
<a href="/account/{{ pkgbase.Maintainer.Username }}">
|
||||
{{ pkgbase.Maintainer.Username }}
|
||||
</a>
|
||||
|
@ -118,6 +118,9 @@
|
|||
{% endif %}
|
||||
{% else %}
|
||||
{{ pkgbase.Maintainer.Username | default("None" | tr) }}
|
||||
{% if comaintainers %}
|
||||
({{ comaintainers|join(', ') }})
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue