discourse/app/assets/javascripts/admin/templates/emojis.hbs
Jarek Radosz d43e7354ec
DEV: Convert <button> tags to {{d-button}} components (#8224)
* DEV: Convert <button> tags to {{d-button}}

* Fixes
2019-11-04 11:23:54 +01:00

36 lines
936 B
Handlebars

<div class='emoji'>
<h2>{{i18n 'admin.emoji.title'}}</h2>
<p class="desc">{{i18n 'admin.emoji.help'}}</p>
<p>{{emoji-uploader done=(action "emojiUploaded")}}</p>
{{#if sortedEmojis}}
<div>
<table id="custom_emoji">
<thead>
<tr>
<th>{{i18n "admin.emoji.image"}}</th>
<th>{{i18n "admin.emoji.name"}}</th>
<th></th>
</tr>
</thead>
<tbody>
{{#each sortedEmojis as |e|}}
<tr>
<th><img class="emoji emoji-custom" src="{{unbound e.url}}" title="{{unbound e.name}}"></th>
<th>:{{e.name}}:</th>
<th>
{{d-button
action=(action "destroy" e)
class="btn-danger pull-right"
icon="far-trash-alt"}}
</th>
</tr>
{{/each}}
</tbody>
</table>
</div>
{{/if}}
</div>