reactionspage.tmpl 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. {{with .Data}}
  2. {{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
  3. <div class="page-title"> Reactions </div>
  4. {{$st_id := .ID}}
  5. <div class="page-title"> Add reaction </div>
  6. <div class="scrollable-emoji">
  7. <div class="pleroma-reactions">
  8. <form action="/react-with/{{$st_id}}" method="post" target="_self" title="Custom akkoma reactions (ex. :blobemoji:)">
  9. <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
  10. <input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
  11. <input type="text" placeholder=":blobfoxexample: or 🤗" id="akkoma-reaction" cols=30 name="akkoma-reaction" autofocus autocomplete="on">
  12. <input type="submit" value="Send custom reaction" class="pleroma-emoji">
  13. <a href="/emojis">emoji list</a>
  14. </form>
  15. {{$emoji_filter := $.Ctx.AddReactionsFilter}}
  16. {{range $shortcode, $code := .ReactionEmojis}}
  17. {{if Allowed_emoji_page $shortcode $emoji_filter}}
  18. <form action="/react-with/{{$st_id}}?emoji={{$code}}" method="post" target="_self" >
  19. <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
  20. <input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
  21. <input type="submit" value="{{$code}}" class="pleroma-emoji">
  22. {{$shortcode}}
  23. </form>
  24. {{end}}
  25. {{end}}
  26. </div>
  27. </div>
  28. <div class="page-title"> Who reacted </div>
  29. {{range .Reactions}}
  30. {{if .Url}}
  31. <div class="page-title"><img src="{{.Url}}" height=32 width=32></img></div>
  32. {{else}}
  33. <div class="page-title">{{.Name}}</div>
  34. {{end}}
  35. {{template "userlist.tmpl" (WithContext .Accounts $.Ctx)}}
  36. {{end}}
  37. {{end}}