2017-12-04 08:14:26 +09:00
|
|
|
{{if .ctx.IsSigned}}
|
|
|
|
<div class="item action ui pointing top right select-reaction dropdown" data-action-url="{{ .ActionURL }}">
|
|
|
|
<a class="add-reaction">
|
2020-02-12 02:02:41 +09:00
|
|
|
{{svg "octicon-plus-small" 16}}
|
|
|
|
{{svg "octicon-smiley" 16}}
|
2017-12-04 08:14:26 +09:00
|
|
|
</a>
|
|
|
|
<div class="menu has-emoji">
|
|
|
|
<div class="header">{{ .ctx.i18n.Tr "repo.pick_reaction"}}</div>
|
|
|
|
<div class="divider"></div>
|
2019-12-28 08:43:56 +09:00
|
|
|
{{range $value := AllowedReactions}}
|
2019-12-02 07:57:24 +09:00
|
|
|
{{if eq $value "hooray"}}
|
|
|
|
<div class="item" data-content="hooray">:tada:</div>
|
|
|
|
{{else if eq $value "laugh"}}
|
|
|
|
<div class="item" data-content="laugh">:laughing:</div>
|
|
|
|
{{else}}
|
|
|
|
<div class="item" data-content="{{$value}}">:{{$value}}:</div>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
2017-12-04 08:14:26 +09:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|