From 4bcd218b8a523c23e11cc0b5ce6dd73c0eb151fa Mon Sep 17 00:00:00 2001 From: Hendrik L Date: Mon, 13 Jan 2025 16:35:02 +0100 Subject: [PATCH] add back navigation for user preview --- app/templates/post/_post_full.html | 2 +- app/templates/post/_post_reply_teaser.html | 2 +- app/templates/post/_post_teaser.html | 2 +- app/templates/post/_post_teaser_masonry.html | 2 +- app/templates/post/post_teaser/_title.html | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/templates/post/_post_full.html b/app/templates/post/_post_full.html index bb343f60..bd6a9986 100644 --- a/app/templates/post/_post_full.html +++ b/app/templates/post/_post_full.html @@ -17,7 +17,7 @@

{% if post.reports > 0 and current_user.is_authenticated and post.community.is_moderator(current_user) -%} {% endif -%}submitted by - {{ render_username(post.author) }} + {{ render_username(post.author, htmx_redirect_back_to=request.url) }} {% if post.edited_at -%} edited

{% if post.type == POST_TYPE_IMAGE -%} diff --git a/app/templates/post/_post_reply_teaser.html b/app/templates/post/_post_reply_teaser.html index 43a6544d..a58bb184 100644 --- a/app/templates/post/_post_reply_teaser.html +++ b/app/templates/post/_post_reply_teaser.html @@ -28,7 +28,7 @@
by - {{ render_username(post_reply.author) }} + {{ render_username(post_reply.author, htmx_redirect_back_to=request.url + '#comment_' + str(post_reply.id)) }} {% if post_reply.author.id == post_reply.post.author.id -%} [OP] {% endif -%} diff --git a/app/templates/post/_post_teaser.html b/app/templates/post/_post_teaser.html index 52f6b042..da4aba42 100644 --- a/app/templates/post/_post_teaser.html +++ b/app/templates/post/_post_teaser.html @@ -9,7 +9,7 @@ {# do nothing - blocked by keyword filter #} {% else -%}