mirror of
https://github.com/go-gitea/gitea
synced 2024-11-13 21:54:24 +00:00
4b1063f3db
Enable `no-sizzle` lint rule, there was only one use in `initCompReactionSelector` and: - Remove all jQuery except the necessary fomantic dropdown init - Remove the recursion, instead bind event listeners to common parent container nodes --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Giteabot <teabot@gitea.io>
11 lines
451 B
Handlebars
11 lines
451 B
Handlebars
{{if ctx.RootData.IsSigned}}
|
|
<div class="item action ui dropdown jump pointing top right select-reaction" data-action-url="{{.ActionURL}}">
|
|
<a class="muted">{{svg "octicon-smiley"}}</a>
|
|
<div class="menu">
|
|
{{range $value := AllowedReactions}}
|
|
<a class="item emoji comment-reaction-button" data-tooltip-content="{{$value}}" aria-label="{{$value}}" data-reaction-content="{{$value}}">{{ReactionToEmoji $value}}</a>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
{{end}}
|