Merge branch 'fix-account-links' into pu

This commit is contained in:
Kevin Morris 2021-12-04 00:25:57 -08:00
commit f8bef16d32
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
3 changed files with 53 additions and 33 deletions

View file

@ -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>