mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 03:03:44 +08:00
189d98f3ca
This PR converts the custom emoji UI in the admin pages to follow the new admin UI guidelines.
63 lines
1.8 KiB
Handlebars
63 lines
1.8 KiB
Handlebars
<div class="form-horizontal">
|
|
<div class="inline-form">
|
|
<ComboBox
|
|
@value={{this.filter}}
|
|
@content={{this.sortingGroups}}
|
|
@nameProperty={{null}}
|
|
@valueProperty={{null}}
|
|
@onChange={{action "filterGroups"}}
|
|
/>
|
|
</div>
|
|
</div>
|
|
|
|
{{#if this.sortedEmojis}}
|
|
<table id="custom_emoji" class="d-admin-table">
|
|
<thead>
|
|
<tr>
|
|
<th>{{i18n "admin.emoji.image"}}</th>
|
|
<th>{{i18n "admin.emoji.name"}}</th>
|
|
<th>{{i18n "admin.emoji.group"}}</th>
|
|
<th colspan="3">{{i18n "admin.emoji.created_by"}}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{#each this.sortedEmojis as |emoji|}}
|
|
<tr class="d-admin-row__content">
|
|
<td class="d-admin-row__overview">
|
|
<img
|
|
class="emoji emoji-custom"
|
|
src={{emoji.url}}
|
|
title={{emoji.name}}
|
|
alt={{i18n "admin.emoji.alt"}}
|
|
/>
|
|
</td>
|
|
<td class="d-admin-row__detail">
|
|
<div class="d-admin-row__mobile-label">
|
|
{{i18n "admin.emoji.name"}}
|
|
</div>
|
|
:{{emoji.name}}:
|
|
</td>
|
|
<td class="d-admin-row__detail">
|
|
<div class="d-admin-row__mobile-label">
|
|
{{i18n "admin.emoji.group"}}
|
|
</div>
|
|
{{emoji.group}}
|
|
</td>
|
|
<td class="d-admin-row__detail">
|
|
<div class="d-admin-row__mobile-label">
|
|
{{i18n "admin.emoji.created_by"}}
|
|
</div>
|
|
{{emoji.created_by}}
|
|
</td>
|
|
<td class="d-admin-row__controls action">
|
|
<DButton
|
|
@action={{fn this.destroyEmoji emoji}}
|
|
@icon="trash-can"
|
|
class="btn-small"
|
|
/>
|
|
</td>
|
|
</tr>
|
|
{{/each}}
|
|
</tbody>
|
|
</table>
|
|
{{/if}} |