mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-29 13:52:10 +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
48 lines
1.8 KiB
Handlebars
48 lines
1.8 KiB
Handlebars
<header class="modal-header" data-test-modal="import-members">
|
|
<h1>
|
|
{{#if this.response}}
|
|
Import result
|
|
{{else}}
|
|
Import members
|
|
{{/if}}
|
|
</h1>
|
|
</header>
|
|
<a class="close" href="" title="Close" {{action "closeModal"}}>{{svg-jar "close"}}<span class="hidden">Close</span></a>
|
|
|
|
<div class="modal-body bg-whitegrey-l2 ba b--whitegrey br3">
|
|
{{#if this.response}}
|
|
<table class="gh-members-import-results">
|
|
<tr>
|
|
<td>Imported:</td>
|
|
<td align="left" data-test-text="import-members-imported">{{this.response.imported}}</td>
|
|
</tr>
|
|
{{#if this.response.duplicates}}
|
|
<tr>
|
|
<td>Duplicates:</td>
|
|
<td align="left" data-test-text="import-members-duplicates">{{this.response.duplicates}}</td>
|
|
</tr>
|
|
{{/if}}
|
|
{{#if this.response.invalid}}
|
|
<tr>
|
|
<td class="red">Invalid:</td>
|
|
<td align="left" data-test-text="import-members-invalid" class="red">{{this.response.invalid}}</td>
|
|
</tr>
|
|
{{/if}}
|
|
</table>
|
|
{{else}}
|
|
<GhFileUploader
|
|
@url={{this.uploadUrl}}
|
|
@paramName="membersfile"
|
|
@labelText="Select or drag-and-drop a CSV file."
|
|
@uploadStarted={{action "uploadStarted"}}
|
|
@uploadFinished={{action "uploadFinished"}}
|
|
@uploadSuccess={{action "uploadSuccess"}} />
|
|
{{/if}}
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button {{action "closeModal"}} disabled={{this.closeDisabled}} class="gh-btn" data-test-button="close-import-members">
|
|
<span>{{#if this.response}}Close{{else}}Cancel{{/if}}</span>
|
|
</button>
|
|
</div>
|