2020-04-14 14:18:49 +08:00
|
|
|
<div class="admin-emojis">
|
|
|
|
<h1>{{i18n "admin.emoji.title"}}</h1>
|
2014-12-23 08:12:26 +08:00
|
|
|
|
2020-03-31 02:16:10 +08:00
|
|
|
<p class="desc">{{i18n "admin.emoji.help"}}</p>
|
2014-12-23 08:12:26 +08:00
|
|
|
|
2020-03-31 02:16:10 +08:00
|
|
|
{{emoji-uploader
|
|
|
|
emojiGroups=emojiGroups
|
|
|
|
done=(action "emojiUploaded")
|
|
|
|
}}
|
|
|
|
|
|
|
|
<hr>
|
2014-12-23 08:12:26 +08:00
|
|
|
|
2016-10-21 01:26:41 +08:00
|
|
|
{{#if sortedEmojis}}
|
2020-03-31 02:16:10 +08:00
|
|
|
<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|}}
|
2014-12-23 08:12:26 +08:00
|
|
|
<tr>
|
2020-04-14 06:39:06 +08:00
|
|
|
<th><img class="emoji emoji-custom" src={{e.url}} title={{e.name}} alt={{i18n "admin.emoji.alt"}}></th>
|
2020-03-31 02:16:10 +08:00
|
|
|
<th>:{{e.name}}:</th>
|
|
|
|
<th>{{e.group}}</th>
|
|
|
|
<th>
|
|
|
|
{{d-button
|
|
|
|
action=(action "destroyEmoji" e)
|
|
|
|
class="btn-danger"
|
|
|
|
icon="far-trash-alt"
|
|
|
|
}}
|
|
|
|
</th>
|
2014-12-23 08:12:26 +08:00
|
|
|
</tr>
|
2020-03-31 02:16:10 +08:00
|
|
|
{{/each}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2014-12-23 08:12:26 +08:00
|
|
|
{{/if}}
|
|
|
|
</div>
|