summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorCirno the Strongest <1447794+CirnoT@users.noreply.github.com>2020-11-02 15:05:41 +0100
committerGitHub <noreply@github.com>2020-11-02 22:05:41 +0800
commit350c10fe5bef393bee64f8ad2a7dada5353bbaa1 (patch)
treea0e7d8b3fc4c9122676b2e898993015b5d6cb18c /templates
parent02259a0f3aaa257daf97fb1ec5f5c83c937a2602 (diff)
downloadgitea-350c10fe5bef393bee64f8ad2a7dada5353bbaa1.tar.gz
gitea-350c10fe5bef393bee64f8ad2a7dada5353bbaa1.zip
Fix reactions on code comments (#13390) (#13401)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> (cherry picked from commit 06268dcf53657ffe012abe878e1127ab4f954264)
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/diff/comments.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/diff/comments.tmpl b/templates/repo/diff/comments.tmpl
index 097d437a6d..69e87a7a70 100644
--- a/templates/repo/diff/comments.tmpl
+++ b/templates/repo/diff/comments.tmpl
@@ -30,7 +30,7 @@
</div>
{{end}}
{{end}}
- {{template "repo/issue/view_content/add_reaction" Dict "ctx" $ "ActionURL" (Printf "%s/comments/%d/reactions" $.root.RepoLink .ID) }}
+ {{template "repo/issue/view_content/add_reaction" Dict "ctx" $.root "ActionURL" (Printf "%s/comments/%d/reactions" $.root.RepoLink .ID) }}
{{template "repo/issue/view_content/context_menu" Dict "ctx" $.root "item" . "delete" true "diff" true "IsCommentPoster" (and $.root.IsSigned (eq $.root.SignedUserID .PosterID))}}
</div>
</div>
@@ -48,7 +48,7 @@
{{$reactions := .Reactions.GroupByType}}
{{if $reactions}}
<div class="ui attached segment reactions">
- {{template "repo/issue/view_content/reactions" Dict "ctx" $ "ActionURL" (Printf "%s/comments/%d/reactions" $.root.RepoLink .ID) "Reactions" $reactions}}
+ {{template "repo/issue/view_content/reactions" Dict "ctx" $.root "ActionURL" (Printf "%s/comments/%d/reactions" $.root.RepoLink .ID) "Reactions" $reactions}}
</div>
{{end}}
</div>