From ea102b9b85ffb3377de48d3fd871661a1206d97a Mon Sep 17 00:00:00 2001 From: Hendrik L Date: Mon, 13 Jan 2025 16:30:28 +0100 Subject: [PATCH] add user note button to profile preview popup --- app/templates/user/edit_note.html | 4 ++++ app/templates/user/user_preview.html | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/app/templates/user/edit_note.html b/app/templates/user/edit_note.html index 5f003e0e..083f3bdc 100644 --- a/app/templates/user/edit_note.html +++ b/app/templates/user/edit_note.html @@ -42,6 +42,10 @@ {{ render_form(form) }} + {% if return_to -%} +

+ {{ _('Back') }} + {% endif -%}
{{ _('This note appears next to their username. It\'s meant just for you and not displayed to anyone else.') }}
diff --git a/app/templates/user/user_preview.html b/app/templates/user/user_preview.html index cba88076..dd0dae27 100644 --- a/app/templates/user/user_preview.html +++ b/app/templates/user/user_preview.html @@ -52,6 +52,11 @@
{{ _('View profile') }}
+ {% if current_user.is_authenticated -%} +
+ {{ _('Edit note') }} +
+ {% endif -%}