mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-23 06:30:50 +08:00
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
13 lines
No EOL
293 B
Handlebars
Vendored
13 lines
No EOL
293 B
Handlebars
Vendored
{{#if this.showSortingUI}}
|
|
<DButton
|
|
@action={{this.sortByLabel}}
|
|
@icon={{this.sortIcon}}
|
|
class="sort-btn"
|
|
/>
|
|
{{/if}}
|
|
|
|
{{#if this.label.htmlTitle}}
|
|
<span class="title">{{html-safe this.label.htmlTitle}}</span>
|
|
{{else}}
|
|
<span class="title">{{this.label.title}}</span>
|
|
{{/if}} |