mirror of
https://github.com/discourse/discourse.git
synced 2024-12-13 00:13:52 +08:00
27 lines
485 B
Handlebars
27 lines
485 B
Handlebars
|
{{#if selectKit.options.showFullTitle}}
|
||
|
{{#if item.icon}}
|
||
|
{{d-icon item.icon}}
|
||
|
{{/if}}
|
||
|
|
||
|
<span class="name">
|
||
|
{{label}}
|
||
|
</span>
|
||
|
|
||
|
{{#if selectKit.options.clearOnClick}}
|
||
|
{{d-icon "times"}}
|
||
|
{{else}}
|
||
|
{{#if shouldDisplayClearableButton}}
|
||
|
{{d-button
|
||
|
class="btn-clear"
|
||
|
icon="times"
|
||
|
action=selectKit.deselect
|
||
|
actionParam=item
|
||
|
}}
|
||
|
{{/if}}
|
||
|
{{/if}}
|
||
|
{{else}}
|
||
|
{{#if item.icon}}
|
||
|
{{d-icon item.icon}}
|
||
|
{{/if}}
|
||
|
{{/if}}
|