aboutsummaryrefslogtreecommitdiff
path: root/templates/repo/issue/view_content/reactions.tmpl
blob: 8e7eabd4b5d62e5299a61f5d275ff95e61d6b6c2 (plain)
1
2
3
4
5
6
7
8
9
{{range $key, $value := .Reactions}}
	<a class="ui label basic{{if $value.HasUser $.ctxData.SignedUserID}} primary{{end}}{{if not $.ctxData.IsSigned}} disabled{{end}}" data-title="{{$value.GetFirstUsers}}{{if gt ($value.GetMoreUserCount) 0}} {{$.ctxData.locale.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>
	</a>
{{end}}
{{if AllowedReactions}}
	{{template "repo/issue/view_content/add_reaction" Dict "ctxData" $.ctxData "ActionURL" .ActionURL}}
{{end}}