mirror of
https://github.com/discourse/discourse.git
synced 2024-12-21 20:24:14 +08:00
856182c7c6
Also moves this component to the admin bundle. It is only used in the admin panel, and has dependencies on admin-specific i18n strings.
62 lines
1.5 KiB
Handlebars
62 lines
1.5 KiB
Handlebars
<div class="admin-emojis">
|
|
<div class="admin-emojis__header">
|
|
<h1>{{i18n "admin.emoji.title"}}</h1>
|
|
<LinkTo
|
|
@route="adminSiteSettingsCategory"
|
|
@model="all_results"
|
|
@query={{hash filter="emoji"}}
|
|
>
|
|
{{i18n "admin.emoji.settings"}}
|
|
</LinkTo>
|
|
</div>
|
|
|
|
<p class="desc">{{i18n "admin.emoji.help"}}</p>
|
|
|
|
<EmojiUploader
|
|
@emojiGroups={{this.emojiGroups}}
|
|
@done={{action "emojiUploaded"}}
|
|
/>
|
|
|
|
<hr />
|
|
|
|
{{#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|}}
|
|
<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={{fn this.destroyEmoji e}}
|
|
@icon="trash-can"
|
|
class="btn-danger"
|
|
/>
|
|
</td>
|
|
</tr>
|
|
{{/each}}
|
|
</tbody>
|
|
</table>
|
|
{{/if}}
|
|
</div> |