mirror of
https://git.phreedom.club/localhost_frssoft/bloat.git
synced 2024-11-21 19:41:28 +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"`
|
ShortCode string `json:"shortcode"`
|
||||||
StaticURL string `json:"static_url"`
|
StaticURL string `json:"static_url"`
|
||||||
URL string `json:"url"`
|
URL string `json:"url"`
|
||||||
|
Category *string `json:"category"`
|
||||||
VisibleInPicker bool `json:"visible_in_picker"`
|
VisibleInPicker bool `json:"visible_in_picker"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,14 +5,15 @@
|
||||||
<div class="emoji-list-container">
|
<div class="emoji-list-container">
|
||||||
{{$emoji_filter := $.Ctx.InstanceEmojiFilter}}
|
{{$emoji_filter := $.Ctx.InstanceEmojiFilter}}
|
||||||
{{range .Emojis}}
|
{{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-container">
|
||||||
<div class="emoji-item">
|
<div class="emoji-item">
|
||||||
<img class="emoji" src="{{.URL}}" alt="{{.ShortCode}}" height="32" loading="lazy" />
|
<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>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue