mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2024-12-23 22:19:49 +00:00
Visible category in title on shortcode emoji
This commit is contained in:
parent
9472518169
commit
b28171ed7b
@ -322,6 +322,7 @@ type Emoji struct {
|
||||
ShortCode string `json:"shortcode"`
|
||||
StaticURL string `json:"static_url"`
|
||||
URL string `json:"url"`
|
||||
Category *string `json:"category"`
|
||||
VisibleInPicker bool `json:"visible_in_picker"`
|
||||
}
|
||||
|
||||
|
@ -5,14 +5,15 @@
|
||||
<div class="emoji-list-container">
|
||||
{{$emoji_filter := $.Ctx.InstanceEmojiFilter}}
|
||||
{{range .Emojis}}
|
||||
{{if Allowed_emoji_page .ShortCode $emoji_filter}}
|
||||
{{if Allowed_emoji_page .ShortCode $emoji_filter}}
|
||||
<div class="emoji-item-container">
|
||||
<div class="emoji-item">
|
||||
<img class="emoji" src="{{.URL}}" alt="{{.ShortCode}}" height="32" loading="lazy" />
|
||||
<span title=":{{.ShortCode}}:" class="emoji-shortcode">:{{.ShortCode}}:</span>
|
||||
<span title=":{{.ShortCode}}:{{if .Category}} Category:{{.Category}}{{end}}" class="emoji-shortcode">:{{.ShortCode}}:</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{end}}
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user