From 14fa658774b9ca3e4eb7c56f3dc78439e7369436 Mon Sep 17 00:00:00 2001 From: Jeena Date: Fri, 27 Sep 2024 10:55:39 +0000 Subject: [PATCH] Add direct link to reply/comment It's difficult to be able to copy and paste a link to a specific comment or reply. It's only easy from the notifications page. This patch introduces a link to a comment/reply by changing the to a around the "When" text like "15 hours ago". This is usually how other websites do deep links to comments too, they make the time of post into a clickable link, so people should be able to find it easyly. --- app/templates/post/post.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/post/post.html b/app/templates/post/post.html index 82dd4086..0ce9fafe 100644 --- a/app/templates/post/post.html +++ b/app/templates/post/post.html @@ -84,7 +84,7 @@ {{ render_username(comment['comment'].author) }} {% endwith -%} {% if comment['comment'].author.id == post.author.id -%}[OP] {% endif -%} - {{ arrow.get(comment['comment'].posted_at).humanize(locale=locale) }}{% if comment['comment'].edited_at -%}, edited {{ arrow.get(comment['comment'].edited_at).humanize(locale=locale) }} {% endif -%} + {{ arrow.get(comment['comment'].posted_at).humanize(locale=locale) }}{% if comment['comment'].edited_at -%}, edited {{ arrow.get(comment['comment'].edited_at).humanize(locale=locale) }} {% endif -%} {% if comment['comment'].reports and current_user.is_authenticated and post.community.is_moderator(current_user)%}