aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsinguliere <35190819+singuliere@users.noreply.github.com>2022-02-06 12:40:08 +0100
committerGitHub <noreply@github.com>2022-02-06 19:40:08 +0800
commitfabc0ad157dd306beefbcff8f89be710d84f467d (patch)
tree673e6ac4dd3c0e17e8be38d244d581783b4a43c4
parenta13fb154ae2a58ee5f69763b7e6ba93a487dcad5 (diff)
downloadgitea-fabc0ad157dd306beefbcff8f89be710d84f467d.tar.gz
gitea-fabc0ad157dd306beefbcff8f89be710d84f467d.zip
comments on migrated issues/prs must link to the comment ID (#18637)
Instead of the issue ID which is not a valid anchor. Signed-off-by: singuliere <singuliere@autistici.org> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
-rw-r--r--templates/repo/issue/view_content/comments.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl
index 73057248c7..a0ab487a5b 100644
--- a/templates/repo/issue/view_content/comments.tmpl
+++ b/templates/repo/issue/view_content/comments.tmpl
@@ -28,7 +28,7 @@
{{ .OriginalAuthor }}
</span>
<span class="text grey">
- {{$.i18n.Tr "repo.issues.commented_at" (.Issue.HashTag|Escape) $createdStr | Safe}} {{if $.Repository.OriginalURL}}
+ {{$.i18n.Tr "repo.issues.commented_at" (.HashTag|Escape) $createdStr | Safe}} {{if $.Repository.OriginalURL}}
</span>
<span class="text migrate">
({{$.i18n.Tr "repo.migrated_from" ($.Repository.OriginalURL|Escape) ($.Repository.GetOriginalURLHostname|Escape) | Safe }}){{end}}