discourse/app/assets/javascripts/admin/addon/templates/watched-words.hbs
Jarek Radosz 1c87bb7fe9
DEV: Update DButton uses (#23333)
1. Use `this.` instead of `{{action}}` where applicable
2. Use `{{fn}}` instead of `@actionParam` where applicable
3. Use non-`@` versions of class/type/tabindex/aria-controls/aria-expanded
4. Remove `btn` class (it's added automatically to all DButtons)
5. Remove `type="button"` (it's the default)
6. Use `concat-class` helper
2023-08-31 11:49:35 +02:00

39 lines
1.1 KiB
Handlebars

<div class="admin-contents">
<div class="admin-controls">
<div class="controls">
<div class="inline-form">
<DButton @action={{this.toggleMenu}} @icon="bars" class="menu-toggle" />
<TextField
@value={{this.filter}}
@placeholderKey="admin.watched_words.search"
@class="no-blur"
/>
<DButton
@action={{this.clearFilter}}
@label="admin.watched_words.clear_filter"
/>
</div>
</div>
</div>
<div class="admin-nav pull-left">
<ul class="nav nav-stacked">
{{#each this.model as |action|}}
<li class={{action.nameKey}}>
<LinkTo @route="adminWatchedWords.action" @model={{action.nameKey}}>
{{action.name}}
{{#if action.words}}<span
class="count"
>({{action.words.length}})</span>{{/if}}
</LinkTo>
</li>
{{/each}}
</ul>
</div>
<div class="admin-detail pull-left mobile-closed watched-words-detail">
{{outlet}}
</div>
<div class="clearfix"></div>
</div>