mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 02:30:57 +08:00
5a5685766a
Three violations require parameters from the caller to generate valid alt text.
50 lines
1.2 KiB
Handlebars
50 lines
1.2 KiB
Handlebars
<div class="admin-emojis">
|
|
<h1>{{i18n "admin.emoji.title"}}</h1>
|
|
|
|
<p class="desc">{{i18n "admin.emoji.help"}}</p>
|
|
|
|
{{emoji-uploader
|
|
emojiGroups=emojiGroups
|
|
done=(action "emojiUploaded")
|
|
}}
|
|
|
|
<hr>
|
|
|
|
{{#if sortedEmojis}}
|
|
<table id="custom_emoji">
|
|
<thead>
|
|
<tr>
|
|
<th>{{i18n "admin.emoji.image"}}</th>
|
|
<th>{{i18n "admin.emoji.name"}}</th>
|
|
<th>
|
|
{{combo-box
|
|
value=filter
|
|
content=sortingGroups
|
|
nameProperty=null
|
|
valueProperty=null
|
|
onChange=(action "filterGroups")
|
|
}}
|
|
</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{#each sortedEmojis as |e|}}
|
|
<tr>
|
|
<th><img class="emoji emoji-custom" src={{e.url}} title={{e.name}} alt={{i18n "admin.emoji.alt"}}></th>
|
|
<th>:{{e.name}}:</th>
|
|
<th>{{e.group}}</th>
|
|
<th>
|
|
{{d-button
|
|
action=(action "destroyEmoji" e)
|
|
class="btn-danger"
|
|
icon="far-trash-alt"
|
|
}}
|
|
</th>
|
|
</tr>
|
|
{{/each}}
|
|
</tbody>
|
|
</table>
|
|
{{/if}}
|
|
</div>
|