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