2023-05-28 07:04:18 +05:30
|
|
|
<div class="ui attached segment reactions" data-action-url="{{$.ActionURL}}">
|
2017-12-04 04:44:26 +05:30
|
|
|
{{range $key, $value := .Reactions}}
|
2023-05-28 07:04:18 +05:30
|
|
|
{{$hasReacted := $value.HasUser $.ctxData.SignedUserID}}
|
|
|
|
<a role="button" class="ui label basic{{if $hasReacted}} primary{{end}}{{if not $.ctxData.IsSigned}} disabled{{end}} comment-reaction-button"
|
|
|
|
data-tooltip-content="{{$value.GetFirstUsers}}{{if gt ($value.GetMoreUserCount) 0}} {{$.ctxData.locale.Tr "repo.reactions_more" $value.GetMoreUserCount}}{{end}}"
|
|
|
|
data-tooltip-placement="bottom-start"
|
|
|
|
data-reaction-content="{{$key}}" data-has-reacted="{{$hasReacted}}">
|
2020-04-28 23:35:39 +05:30
|
|
|
<span class="reaction">{{ReactionToEmoji $key}}</span>
|
|
|
|
<span class="reaction-count">{{len $value}}</span>
|
2017-12-04 04:44:26 +05:30
|
|
|
</a>
|
|
|
|
{{end}}
|
2019-12-28 05:13:56 +05:30
|
|
|
{{if AllowedReactions}}
|
2023-04-07 20:09:08 +05:30
|
|
|
{{template "repo/issue/view_content/add_reaction" dict "ctxData" $.ctxData "ActionURL" .ActionURL}}
|
2019-12-02 04:27:24 +05:30
|
|
|
{{end}}
|
2023-05-28 07:04:18 +05:30
|
|
|
</div>
|