Show admin status in user list

This commit is contained in:
Tim Van Baak 2021-06-15 23:33:25 -07:00
parent 34685a741e
commit 3c7fc4b5f8

View File

@ -38,9 +38,7 @@
{% macro dashboard_user_item(user) %}
<div class="dashboard-lexicon-item">
<p>
<b>{{ user.username }}</b>
{% if user.username != user.display_name %} / {{ user.display_name }}{% endif %}
(id #{{user.id}})
<b>{{ user.username }}</b> {% if user.username != user.display_name %} / {{ user.display_name }}{% endif %} (id #{{user.id}}){% if user.is_site_admin %} <b>[ADMIN]</b>{% endif %}
</p>
<p>Last activity: {{ user.last_activity }} &mdash; Last login: {{ user.last_login }}</p>
</div>