mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 04:33:52 +08:00
d9a02d1336
This reverts commit20780a1eee
. * SECURITY: re-adds accidentally reverted commit: 03d26cd6: ensure embed_url contains valid http(s) uri * when the merge commite62a85cf
was reverted, git chose the2660c2e2
parent to land on instead of the03d26cd6
parent (which contains security fixes)
31 lines
784 B
Handlebars
31 lines
784 B
Handlebars
{{#if selectKit.options.showFullTitle}}
|
|
<div {{action "onSelectedNameClick"}} tabindex="0" title={{title}} data-value={{value}} data-name={{name}} class="select-kit-selected-name selected-name choice">
|
|
{{#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}}
|
|
</div>
|
|
{{else}}
|
|
{{#if item.icon}}
|
|
<div tabindex="0" class="select-kit-selected-name selected-name choice">
|
|
{{d-icon item.icon}}
|
|
</div>
|
|
{{/if}}
|
|
{{/if}}
|