2022-10-19 17:36:33 +03:00
|
|
|
{{with .Data}}
|
|
|
|
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
|
2022-10-20 02:15:50 +03:00
|
|
|
<div class="page-title"> Reactions </div>
|
2022-10-19 19:15:52 +03:00
|
|
|
{{$st_id := .ID}}
|
2022-10-20 02:15:50 +03:00
|
|
|
<div class="page-title"> Add reaction </div>
|
|
|
|
<div class="scrollable-emoji" style="overflow-y: scroll; height:200px;">
|
|
|
|
<div class="pleroma-reactions">
|
|
|
|
{{$emoji_filter := $.Ctx.AddReactionsFilter}}
|
2022-10-19 19:15:52 +03:00
|
|
|
{{range $shortcode, $code := .ReactionEmojis}}
|
2022-10-20 02:15:50 +03:00
|
|
|
{{if Allowed_emoji_page $shortcode $emoji_filter}}
|
2022-10-19 19:15:52 +03:00
|
|
|
<form action="/react-with/{{$st_id}}?emoji={{$code}}" method="post" target="_self" title="{{$shortcode}}">
|
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
|
|
|
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
|
|
|
|
<input type="submit" value="{{$code}}" class="pleroma-emoji">
|
|
|
|
</form>
|
|
|
|
{{end}}
|
2022-10-20 02:15:50 +03:00
|
|
|
{{end}}
|
2022-10-26 01:16:13 +03:00
|
|
|
<form action="/react-with/{{$st_id}}" method="post" target="_self" title="Custom akkoma reactions (ex. :blobemoji:)">
|
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
|
|
|
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
|
|
|
|
<input type="text" label="ex. :pleromaemoji:" id="akkoma-reaction" cols=30 name="akkoma-reaction">
|
|
|
|
<input type="submit" value="Send custom reaction" class="pleroma-emoji">
|
|
|
|
</form>
|
2022-10-19 19:15:52 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-10-20 02:15:50 +03:00
|
|
|
<div class="page-title"> Who reacted </div>
|
2022-10-19 17:36:33 +03:00
|
|
|
{{range .Reactions}}
|
2022-10-23 02:43:38 +03:00
|
|
|
{{if .Url}}
|
|
|
|
<div class="page-title"><img src="{{.Url}}" height=32 width=32></img></div>
|
|
|
|
{{else}}
|
2022-10-19 17:36:33 +03:00
|
|
|
<div class="page-title">{{.Name}}</div>
|
2022-10-23 02:43:38 +03:00
|
|
|
{{end}}
|
2022-10-19 17:36:33 +03:00
|
|
|
{{template "userlist.tmpl" (WithContext .Accounts $.Ctx)}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|