mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-27 00:25:56 +01:00
feat: add release reactions and a GitHub-like reaction bar (#38415)
Adds emoji reactions to releases and moves the reaction picker of issues, comments and releases into a GitHub-like reaction bar. - Releases omit 👎 or 😕 - Drafts and tags can't be reacted to - Moved menu to tippy - Added keyboard navigation Fixes: https://github.com/go-gitea/gitea/issues/34268 Fixes: https://github.com/go-gitea/gitea/issues/16676 Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
42 files changed
+508
-313
No files matched your search
@@ -55,9 +55,6 @@
|
||||
</div>
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{if not $repo.IsArchived}}
|
||||
{{template "repo/issue/view_content/add_reaction" dict "ActionURL" (printf "%s/comments/%d/reactions" $repoLink $comment.ID)}}
|
||||
{{end}}
|
||||
{{template "repo/issue/view_content/context_menu" dict "ConvContentType" "issue_comment" "ConvContentPage" "pr-files" "ConvContentItem" $comment}}
|
||||
</div>
|
||||
</div>
|
||||
@@ -76,10 +73,11 @@
|
||||
{{template "repo/issue/view_content/attachments" dict "Attachments" $comment.Attachments "RenderedContent" $comment.RenderedContent}}
|
||||
{{end}}
|
||||
</div>
|
||||
{{$reactions := $comment.Reactions.GroupByType}}
|
||||
{{if $reactions}}
|
||||
{{template "repo/issue/view_content/reactions" dict "ActionURL" (printf "%s/comments/%d/reactions" $repoLink $comment.ID) "Reactions" $reactions}}
|
||||
{{end}}
|
||||
{{template "shared/reactions" dict
|
||||
"AllowedReactions" $root.AllowedIssueReactions
|
||||
"ActionURL" (printf "%s/comments/%d/reactions" $repoLink $comment.ID)
|
||||
"Reactions" $comment.Reactions.GroupByType
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
{{end}}
|
||||
Reference in new issue
Block a user