From 6e8f7c57cbc133aaa398b2a30d573272ba4e721c Mon Sep 17 00:00:00 2001 From: Hendrik L Date: Tue, 3 Dec 2024 13:40:59 +0100 Subject: [PATCH] also show admin state for local instance --- app/templates/user/show_profile.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/user/show_profile.html b/app/templates/user/show_profile.html index 5e50d70f..b5d38302 100644 --- a/app/templates/user/show_profile.html +++ b/app/templates/user/show_profile.html @@ -105,7 +105,7 @@ {% endif %}

{{ _('Instance') }}: {{ user.instance_domain() }} - {% if user.is_instance_admin() %}({{ _('Admin') }}){% endif %}
+ {% if user.is_instance_admin() or (user.is_local() and user.is_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 %}