2017-12-04 08:14:26 +09: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-02 07:57:24 +09:00
|
|
|
{{else if eq $key "laugh"}}
|
|
|
|
:laughing:
|
2017-12-04 08:14:26 +09:00
|
|
|
{{else}}
|
2019-12-02 07:57:24 +09:00
|
|
|
:{{$key}}:
|
2017-12-04 08:14:26 +09:00
|
|
|
{{end}}
|
|
|
|
{{len $value}}
|
|
|
|
</a>
|
|
|
|
{{end}}
|
2019-12-28 08:43:56 +09:00
|
|
|
{{if AllowedReactions}}
|
|
|
|
{{template "repo/issue/view_content/add_reaction" Dict "ctx" $.ctx "ActionURL" .ActionURL}}
|
2019-12-02 07:57:24 +09:00
|
|
|
{{end}}
|