2017-12-04 01:14:26 +02:00
|
|
|
{{range $key, $value := .Reactions}}
|
2020-04-28 14:05:39 -04:00
|
|
|
<a class="ui label basic{{if $value.HasUser $.ctx.SignedUserID}} blue{{end}}{{if not $.ctx.IsSigned}} disabled{{end}}" data-title="{{$value.GetFirstUsers}}{{if gt ($value.GetMoreUserCount) 0}} {{ $.ctx.i18n.Tr "repo.reactions_more" $value.GetMoreUserCount}}{{end}}" data-content="{{ $key }}" data-action-url="{{ $.ActionURL }}">
|
|
|
|
|
<span class="reaction">{{ReactionToEmoji $key}}</span>
|
|
|
|
|
<span class="reaction-count">{{len $value}}</span>
|
2017-12-04 01:14:26 +02:00
|
|
|
</a>
|
|
|
|
|
{{end}}
|
2019-12-28 00:43:56 +01:00
|
|
|
{{if AllowedReactions}}
|
|
|
|
|
{{template "repo/issue/view_content/add_reaction" Dict "ctx" $.ctx "ActionURL" .ActionURL}}
|
2019-12-01 23:57:24 +01:00
|
|
|
{{end}}
|