mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 18:01:36 +03:00
4f08b7fb8d
refs https://github.com/TryGhost/Ghost/issues/9505 - use Spirit classes for card context menu - add button and icon class options for context menu items - add ability to have icon+text for context menu items - add "Edit" context menu item to markdown and html cards
21 lines
862 B
Handlebars
21 lines
862 B
Handlebars
{{#if icon}}{{svg-jar icon class=iconClass}}{{/if}}
|
|
|
|
{{yield}}
|
|
|
|
{{#if toolbar}}
|
|
<ul data-toolbar="true" class="kg-action-bar bg-lgr-darkgrey inline-flex pa0 ma0 list br3 shadow-2 items-center absolute white sans-serif f8 fw6 tracked-2 anim-fast-bezier {{if showToolbar "" "o-0 drop-down"}}" style={{toolbarStyle}}>
|
|
{{#each toolbar.items as |item|}}
|
|
<li class="ma0">
|
|
<button
|
|
type="button"
|
|
title={{item.title}}
|
|
class="dib dim-lite pa3 pt2 pb2 link {{item.buttonClass}}"
|
|
onmousedown={{action item.action}}
|
|
>
|
|
{{#if item.icon}}{{svg-jar item.icon class=(concat item.iconClass (if item.text " mr2") " w4 h4")}} {{/if}}{{item.text}}
|
|
</button>
|
|
</li>
|
|
{{/each}}
|
|
</ul>
|
|
{{/if}}
|