discourse/app/assets/javascripts/admin/addon/templates/emojis.hbs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
1.1 KiB
Handlebars
Raw Normal View History

<div class="admin-emojis">
<h1>{{i18n "admin.emoji.title"}}</h1>
2014-12-23 08:12:26 +08:00
<p class="desc">{{i18n "admin.emoji.help"}}</p>
2014-12-23 08:12:26 +08:00
<EmojiUploader @emojiGroups={{this.emojiGroups}} @done={{action "emojiUploaded"}} @id="emoji-uploader" />
<hr>
2014-12-23 08:12:26 +08:00
{{#if this.sortedEmojis}}
<table id="custom_emoji">
<thead>
<tr>
<th>{{i18n "admin.emoji.image"}}</th>
<th>{{i18n "admin.emoji.name"}}</th>
<th colspan="2">
<ComboBox @value={{this.filter}} @content={{this.sortingGroups}} @nameProperty={{null}} @valueProperty={{null}} @onChange={{action "filterGroups"}} />
</th>
</tr>
</thead>
<tbody>
{{#each this.sortedEmojis as |e|}}
2014-12-23 08:12:26 +08:00
<tr>
<td><img class="emoji emoji-custom" src={{e.url}} title={{e.name}} alt={{i18n "admin.emoji.alt"}}></td>
<td>:{{e.name}}:</td>
<td>{{e.group}}</td>
<td class="action">
<DButton @action={{action "destroyEmoji" e}} @class="btn-danger" @icon="far-trash-alt" />
</td>
2014-12-23 08:12:26 +08:00
</tr>
{{/each}}
</tbody>
</table>
2014-12-23 08:12:26 +08:00
{{/if}}
</div>