mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Merge branch 'fix-account-links' into pu
This commit is contained in:
commit
f8bef16d32
3 changed files with 53 additions and 33 deletions
|
@ -69,20 +69,24 @@
|
|||
| safe
|
||||
}}
|
||||
</li>
|
||||
<li>
|
||||
{{ "%sEdit this user's account%s"
|
||||
| tr
|
||||
| format('<a href="/account/%s/edit">' | format(user.Username), "</a>")
|
||||
| safe
|
||||
}}
|
||||
</li>
|
||||
<li>
|
||||
{{ "%sList this user's comments%s"
|
||||
| tr
|
||||
| format('<a href="/account/%s/comments">' | format(user.Username), "</a>")
|
||||
| safe
|
||||
}}
|
||||
</li>
|
||||
{% if request.user.has_credential(creds.ACCOUNT_EDIT, approved=[user]) %}
|
||||
<li>
|
||||
{{ "%sEdit this user's account%s"
|
||||
| tr
|
||||
| format('<a href="/account/%s/edit">' | format(user.Username), "</a>")
|
||||
| safe
|
||||
}}
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if request.user.has_credential(creds.ACCOUNT_LIST_COMMENTS, approved=[user]) %}
|
||||
<li>
|
||||
{{ "%sList this user's comments%s"
|
||||
| tr
|
||||
| format('<a href="/account/%s/comments">' | format(user.Username), "</a>")
|
||||
| safe
|
||||
}}
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue