mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2024-11-18 21:13:01 +00:00
37 lines
1.5 KiB
Cheetah
37 lines
1.5 KiB
Cheetah
{{with .Data}}
|
|
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
|
|
<div class="page-title"> Reactions </div>
|
|
{{$st_id := .ID}}
|
|
<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}}
|
|
{{range $shortcode, $code := .ReactionEmojis}}
|
|
{{if Allowed_emoji_page $shortcode $emoji_filter}}
|
|
<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}}
|
|
{{end}}
|
|
<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>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="page-title"> Who reacted </div>
|
|
{{range .Reactions}}
|
|
{{if .Url}}
|
|
<div class="page-title"><img src="{{.Url}}" height=32 width=32></img></div>
|
|
{{else}}
|
|
<div class="page-title">{{.Name}}</div>
|
|
{{end}}
|
|
{{template "userlist.tmpl" (WithContext .Accounts $.Ctx)}}
|
|
{{end}}
|
|
{{end}}
|