bloat/templates/reactionspage.tmpl

39 lines
1.6 KiB
Cheetah
Raw Normal View History

2022-10-19 17:36:33 +03:00
{{with .Data}}
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
<div class="page-title"> Reactions </div>
{{$st_id := .ID}}
<div class="page-title"> Add reaction </div>
2023-11-06 15:45:04 +02:00
<div class="scrollable-emoji">
<div class="pleroma-reactions">
2023-11-06 15:45:04 +02: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" placeholder=":blobfoxexample: or 🤗" id="akkoma-reaction" cols=30 name="akkoma-reaction" autofocus autocomplete="on">
<input type="submit" value="Send custom reaction" class="pleroma-emoji">
<a href="/emojis">emoji list</a>
</form>
{{$emoji_filter := $.Ctx.AddReactionsFilter}}
{{range $shortcode, $code := .ReactionEmojis}}
{{if Allowed_emoji_page $shortcode $emoji_filter}}
2023-11-06 15:45:04 +02:00
<form action="/react-with/{{$st_id}}?emoji={{$code}}" method="post" target="_self" >
<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">
2023-11-06 15:45:04 +02:00
{{$shortcode}}
</form>
{{end}}
{{end}}
</div>
</div>
<div class="page-title"> Who reacted </div>
2022-10-19 17:36:33 +03:00
{{range .Reactions}}
{{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>
{{end}}
2022-10-19 17:36:33 +03:00
{{template "userlist.tmpl" (WithContext .Accounts $.Ctx)}}
{{end}}
{{end}}