From 526b73102bec149bb335ce9020c44952823ed38a Mon Sep 17 00:00:00 2001 From: Hendrik L Date: Tue, 3 Dec 2024 13:33:19 +0100 Subject: [PATCH] show roles in user profile --- app/templates/user/show_profile.html | 1 + 1 file changed, 1 insertion(+) diff --git a/app/templates/user/show_profile.html b/app/templates/user/show_profile.html index cf2158be..5e50d70f 100644 --- a/app/templates/user/show_profile.html +++ b/app/templates/user/show_profile.html @@ -106,6 +106,7 @@

{{ _('Instance') }}: {{ user.instance_domain() }} {% if user.is_instance_admin() %}({{ _('Admin') }}){% endif %}
+ {% if user.is_admin() or user.is_staff() %}{{ _('Role permissions') }}: {% if user.is_admin() %}{{ _('Admin') }}{% endif %} {% if user.is_staff() %}{{ _('Staff') }}{% endif %}
{% endif %} {{ _('Joined') }}: {{ arrow.get(user.created).humanize(locale=locale) }}
{% if current_user.is_authenticated and current_user.is_admin() and user.last_seen %}{{ _('Active') }}: {{ arrow.get(user.last_seen).humanize(locale=locale) }}
{% endif %} {% if user.bot %}