Ghost/ghost/admin/lib/gh-koenig/addon/templates/components/koenig-menu-item.hbs

21 lines
464 B
Handlebars
Raw Normal View History

{{#if selected}}
<button {{action "select"}} class="selected">
{{#if tool.icon}}
<img src="{{iconURL}}{{tool.icon}}" />
{{else}}
{{tool.name}}
{{/if}}
{{tool.label}}
</button>
{{else}}
<button {{action "select"}}>
{{#if tool.icon}}
<img src="{{iconURL}}{{tool.icon}}" />
{{else}}
{{tool.name}}
{{/if}}
{{tool.label}}
</button>
{{/if}}