From 16ebcbc5f2f13754ca80c0331c7a42e25955a2b8 Mon Sep 17 00:00:00 2001 From: Gusted Date: Sat, 19 Aug 2023 12:58:17 +0200 Subject: [PATCH 1/2] add anchor to review types - The review type '22' is a general comment type that is attached to single codecomments, reviews with multiple comments or to simple approve and request changes comment. This comment can be used to create a link towards this action on an pull request. - Adds an anchor to the review comment type, so that when its getting linked to it, it actually jumps towards that event. - This also now fixes the behavior that after you created a review you will be redirected to that review and because this is an general comment type other mails will also be 'fixed' such as the approved or request changes. - Resolves https://codeberg.org/forgejo/forgejo/issues/1248 (cherry picked from commit 1741a5f1fe6adc68bb5f87bdd1c5bdc5bfaa45c7) --- templates/repo/issue/view_content/comments.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl index d43979ff59bdb..0f77e0254a06e 100644 --- a/templates/repo/issue/view_content/comments.tmpl +++ b/templates/repo/issue/view_content/comments.tmpl @@ -364,7 +364,7 @@ {{end}} {{else if eq .Type 22}} -
+
{{if .OriginalAuthor}} {{else}} From e06f0e38166bede2bccbcb15700e7a6ecddb9afb Mon Sep 17 00:00:00 2001 From: Caesar Schinas Date: Tue, 12 Sep 2023 21:05:38 +0100 Subject: [PATCH 2/2] remove duplicate id Fixes https://codeberg.org/forgejo/forgejo/issues/1414 (cherry picked from commit 6243914c588e8ed3e824a6a83b1cfe85650f8898) --- templates/repo/issue/view_content/comments.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl index 0f77e0254a06e..ccb61d9dbc0f5 100644 --- a/templates/repo/issue/view_content/comments.tmpl +++ b/templates/repo/issue/view_content/comments.tmpl @@ -403,7 +403,7 @@
{{if or .Content .Attachments}} -
+