mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03:00
09435ecf76
no issue Keeps component JS backing files and template files in the same directory which avoids hunting across directories when working with components. Also lets you see all components when looking at one directory, whereas previously template-only or js-only components may not have been obvious without looking at both directories. - ran [codemod](https://github.com/ember-codemods/ember-component-template-colocation-migrator/) for app-level components - manually moved in-repo-addon component templates in `lib/koenig-editor` - removed all explicit `layout` imports as JS/template associations are now made at build-time removing the need for them - updated `.embercli` to default to new flat component structure
30 lines
1.1 KiB
Handlebars
30 lines
1.1 KiB
Handlebars
{{#if showToolbar}}
|
|
<ul class="kg-link-toolbar bg-darkgrey-d1 inline-flex pa0 ma0 list br3 shadow-2 items-center relative white f-small fw4 tracked-2 nudge-top--1">
|
|
<li class="mw70 ma0 truncate">
|
|
<a href="{{url}}" class="dib dim-lite pa2 pl3 pr3 pr1 link white" target="_blank" rel="noopener noreferrer">{{url}}</a>
|
|
</li>
|
|
<li class="ma0">
|
|
<button
|
|
type="button"
|
|
title="Edit"
|
|
class="dib dim-lite pa2 pl1 pr1 link"
|
|
{{action "edit"}}
|
|
>
|
|
{{!-- TODO: get correct icon --}}
|
|
{{svg-jar "koenig/kg-edit" class="fill-white w4 h4 nudge-top--1"}}
|
|
</button>
|
|
</li>
|
|
<li class="ma0">
|
|
<button
|
|
type="button"
|
|
title="Remove"
|
|
class="dib dim-lite pa2 pl1 pr1 link mr2"
|
|
{{action "remove"}}
|
|
>
|
|
{{!-- TODO: get correct icon --}}
|
|
{{svg-jar "koenig/kg-trash" class="fill-white w4 h4 nudge-top--1"}}
|
|
</button>
|
|
</li>
|
|
</ul>
|
|
{{/if}}
|