mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 15:48:28 +08:00
f1bb1db354
From ember-template-lint documentation (https://github.com/ember-template-lint/ember-template-lint/blob/master/docs/rule/no-unbound.md): ``` {{unbound}} is a legacy hold over from the days in which Ember's template engine was less performant. Its use today is vestigial, and it no longer offers performance benefits. It is also a poor practice to use it for rendering only the initial value of a property that may later change. ``` Co-Authored-By: Jarek Radosz <jradosz@gmail.com>
36 lines
916 B
Handlebars
36 lines
916 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={{e.url}} title={{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>
|