From 07eb687d345c02ff0ed490db8ea032e019eb847c Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Mon, 19 Feb 2024 16:26:58 +1300 Subject: [PATCH] chat - user profile fix --- app/templates/user/show_profile.html | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/app/templates/user/show_profile.html b/app/templates/user/show_profile.html index ecc1f3f4..d4245a08 100644 --- a/app/templates/user/show_profile.html +++ b/app/templates/user/show_profile.html @@ -4,7 +4,8 @@ {% extends "base.html" %} {% endif %} %} {% from 'bootstrap/form.html' import render_form %} -{% if current_user.is_authenticated() and user.id == current_user.id %} + +{% if current_user.is_authenticated and user.id == current_user.id %} {% set active_child = 'view_profile' %} {% endif %} {% block app_content %} @@ -41,20 +42,18 @@

{{ user.display_name() if user.is_local() else user.display_name() + ', ' + user.ap_id }}

{% endif %} - {% if current_user.is_authenticated %} + {% if current_user.is_authenticated and current_user != user %}
{{ _('Send message') }} {% if user.matrix_user_id %} {{ _('Send message using Matrix') }} {% endif %} - {% if current_user.id != user.id %} - {% if current_user.has_blocked_user(user.id) %} - {{ _('Unblock user') }} - {% else %} - {{ _('Block user') }} - {% endif %} - {{ _('Report user') }} + {% if current_user.has_blocked_user(user.id) %} + {{ _('Unblock user') }} + {% else %} + {{ _('Block user') }} {% endif %} + {{ _('Report user') }}
{% endif %}

{{ _('Joined') }}: {{ moment(user.created).fromNow(refresh=True) }}