mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-06 10:30:31 +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
18 lines
No EOL
455 B
Handlebars
18 lines
No EOL
455 B
Handlebars
<button
|
|
{{on "click" (fn this.selectKit.deselect this.item)}}
|
|
aria-label={{i18n "select_kit.delete_item" name=this.itemName}}
|
|
data-value={{this.itemValue}}
|
|
data-name={{this.itemName}}
|
|
type="button"
|
|
id="{{this.id}}-choice"
|
|
class="btn btn-default selected-choice {{this.extraClass}}"
|
|
>
|
|
{{d-icon "times"}}
|
|
{{#if (has-block)}}
|
|
{{yield}}
|
|
{{else}}
|
|
<span class="d-button-label">
|
|
{{this.itemName}}
|
|
</span>
|
|
{{/if}}
|
|
</button> |