bloat/templates/emoji.tmpl

22 lines
629 B
Cheetah
Raw Normal View History

2020-01-14 16:57:16 +00:00
{{with .Data}}
2020-02-18 22:15:37 +00:00
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
2019-12-22 18:10:42 +00:00
<div class="page-title"> Emojis </div>
<div class="emoji-list-container">
{{$emoji_filter := $.Ctx.InstanceEmojiFilter}}
2019-12-22 18:10:42 +00:00
{{range .Emojis}}
{{if Allowed_emoji_page .ShortCode $emoji_filter}}
2020-10-19 05:20:57 +00:00
<div class="emoji-item-container">
<div class="emoji-item">
<img class="emoji" src="{{.URL}}" alt="{{.ShortCode}}" height="32" loading="lazy" />
<span title=":{{.ShortCode}}:{{if .Category}} Category:{{.Category}}{{end}}" class="emoji-shortcode">:{{.ShortCode}}:</span>
2020-10-19 05:20:57 +00:00
</div>
2019-12-22 18:10:42 +00:00
</div>
{{end}}
{{end}}
2019-12-22 18:10:42 +00:00
</div>
{{template "footer.tmpl"}}
2020-01-14 16:57:16 +00:00
{{end}}