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

Failed to ignore revisions in .git-blame-ignore-revs.

50 lines
1.2 KiB
Handlebars
Raw Normal View History

<div class="admin-emojis">
<h1>{{i18n "admin.emoji.title"}}</h1>
2014-12-22 19:12:26 -05:00
<p class="desc">{{i18n "admin.emoji.help"}}</p>
2014-12-22 19:12:26 -05:00
{{emoji-uploader
emojiGroups=emojiGroups
done=(action "emojiUploaded")
}}
<hr>
2014-12-22 19:12:26 -05:00
{{#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|}}
2014-12-22 19:12:26 -05:00
<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>
2014-12-22 19:12:26 -05:00
</tr>
{{/each}}
</tbody>
</table>
2014-12-22 19:12:26 -05:00
{{/if}}
</div>