mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 15:12:58 +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
19 lines
1.1 KiB
Handlebars
19 lines
1.1 KiB
Handlebars
<div class="modal-container js-modal-container" {{action "closeModal"}}>
|
|
<article class="{{klass}} js-modal">
|
|
<section class="modal-content" {{action "noBubble" bubbles=false preventDefault=false}}>
|
|
{{#if title}}<header class="modal-header"><h1>{{title}}</h1></header>{{/if}}
|
|
{{#if showClose}}<a class="close" href="" title="Close" {{action "closeModal"}}>{{svg-jar "close"}}<span class="hidden">Close</span></a>{{/if}}
|
|
<section class="modal-body">
|
|
{{yield}}
|
|
</section>
|
|
{{#if confirm}}
|
|
<footer class="modal-footer">
|
|
{{! Buttons must be on one line to prevent white-space errors }}
|
|
<button type="button" class="{{rejectButtonClass}} btn-minor" {{action "confirm" "reject"}} data-test-modal-reject-button>{{confirm.reject.text}}</button><button type="button" class="{{acceptButtonClass}}" {{action "confirm" "accept"}} data-test-modal-accept-button>{{confirm.accept.text}}</button>
|
|
</footer>
|
|
{{/if}}
|
|
</section>
|
|
</article>
|
|
</div>
|
|
<div class="modal-background js-modal-background"></div>
|