2017-12-03 23:14:26 +00:00
|
|
|
{{if .ctx.IsSigned}}
|
|
|
|
<div class="item action ui pointing top right select-reaction dropdown" data-action-url="{{ .ActionURL }}">
|
|
|
|
<a class="add-reaction">
|
|
|
|
<i class="octicon octicon-plus-small" style="width: 10px"></i>
|
|
|
|
<i class="octicon octicon-smiley"></i>
|
|
|
|
</a>
|
|
|
|
<div class="menu has-emoji">
|
|
|
|
<div class="header">{{ .ctx.i18n.Tr "repo.pick_reaction"}}</div>
|
|
|
|
<div class="divider"></div>
|
2019-12-27 23:43:56 +00:00
|
|
|
{{range $value := AllowedReactions}}
|
2019-12-01 22:57:24 +00: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-03 23:14:26 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|