mirror of
https://git.phreedom.club/localhost_frssoft/bloat.git
synced 2024-11-25 05:11:27 +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"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,8 @@
|
||||||
<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}}
|
||||||
|
|
Loading…
Reference in a new issue