mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +03:00
9ed5aad186
no issue - the upcoming Module Unification re-organisation in Ember will no longer support nested components - this PR pre-emptively moves our usage of nested components into a flat file structure
48 lines
1.5 KiB
Handlebars
48 lines
1.5 KiB
Handlebars
<header class="modal-header">
|
|
<h1>
|
|
{{#if response}}
|
|
Import Successful
|
|
{{else}}
|
|
Import Subscribers
|
|
{{/if}}
|
|
</h1>
|
|
</header>
|
|
<a class="close" href="" title="Close" {{action "closeModal"}}>{{inline-svg "close"}}<span class="hidden">Close</span></a>
|
|
|
|
<div class="modal-body">
|
|
{{#if response}}
|
|
<table class="subscribers-import-results">
|
|
<tr>
|
|
<td>Imported:</td>
|
|
<td align="left">{{response.imported}}</td>
|
|
</tr>
|
|
{{#if response.duplicates}}
|
|
<tr>
|
|
<td>Duplicates:</td>
|
|
<td align="left">{{response.duplicates}}</td>
|
|
</tr>
|
|
{{/if}}
|
|
{{#if response.invalid}}
|
|
<tr>
|
|
<td>Invalid:</td>
|
|
<td align="left">{{response.invalid}}</td>
|
|
</tr>
|
|
{{/if}}
|
|
</table>
|
|
{{else}}
|
|
{{gh-file-uploader
|
|
url=uploadUrl
|
|
paramName="subscribersfile"
|
|
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={{closeDisabled}} class="gh-btn">
|
|
<span>{{#if response}}Close{{else}}Cancel{{/if}}</span>
|
|
</button>
|
|
</div>
|