2017-12-04 00:14:26 +01:00
|
|
|
{{range $key, $value := .Reactions}}
|
|
|
|
<a class="ui label basic{{if $value.HasUser $.ctx.SignedUserID}} blue{{end}}{{if not $.ctx.IsSigned}} disabled{{end}} has-emoji" 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 }}">
|
|
|
|
{{if eq $key "hooray"}}
|
|
|
|
:tada:
|
2019-12-01 23:57:24 +01:00
|
|
|
{{else if eq $key "laugh"}}
|
|
|
|
:laughing:
|
2017-12-04 00:14:26 +01:00
|
|
|
{{else}}
|
2019-12-01 23:57:24 +01:00
|
|
|
:{{$key}}:
|
2017-12-04 00:14:26 +01:00
|
|
|
{{end}}
|
|
|
|
{{len $value}}
|
|
|
|
</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}}
|