aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/issue/view_content/add_reaction.tmpl
blob: 543f313f0abcffb23df324cac2c9fae680a5f65b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{{if .ctx.IsSigned}}
<div class="item action ui pointing top right select-reaction dropdown" data-action-url="{{ .ActionURL }}">
	<a class="add-reaction">
		{{svg "octicon-plus-small" 16}}
		{{svg "octicon-smiley" 16}}
	</a>
	<div class="menu has-emoji">
		<div class="header">{{ .ctx.i18n.Tr "repo.pick_reaction"}}</div>
		<div class="divider"></div>
		{{range $value := AllowedReactions}}
			{{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}}
	</div>
</div>
{{end}}