From 948766b8c6cfd57dc6b12bd724ed7d39aa591302 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Sun, 5 Jan 2025 15:21:31 +1300 Subject: [PATCH] tweak ordering --- 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 247e3568..a9743eba 100644 --- a/app/templates/user/show_profile.html +++ b/app/templates/user/show_profile.html @@ -110,9 +110,9 @@ {% 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 %} {% if current_user.is_authenticated and current_user.is_admin() %}{{ _('Referer') }}: {{ user.referrer if user.referrer }}
{% endif %} {% if current_user.is_authenticated and current_user.is_admin() %}{{ _('IP and country code') }}: {{ user.ip_address if user.ip_address }}{% if user.ip_address_country %} ({{ user.ip_address_country }}){% endif %}
{% endif %} - {% 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 %} {{ _('Bot Account') }}
{% endif %}