mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 20:03:12 +03:00
30 lines
1.3 KiB
Handlebars
30 lines
1.3 KiB
Handlebars
<section class="gh-canvas">
|
|
<header class="gh-canvas-header">
|
|
<h2 class="gh-canvas-title" data-test-screen-title>Subscribers <span style="font-weight:200;margin-left:10px;display:inline-block;" data-test-total-subscribers> ({{total}})</span></h2>
|
|
<div class="view-actions">
|
|
{{#link-to "subscribers.import" class="gh-btn gh-btn-hover-green mr2" data-test-link="import-csv"}}<span>Import CSV</span>{{/link-to}}
|
|
<a href="#" {{action 'exportData'}} class="gh-btn gh-btn-hover-blue mr2"><span>Export CSV</span></a>
|
|
{{#link-to "subscribers.new" class="gh-btn gh-btn-green" data-test-link="add-subscriber"}}<span>Add Subscriber</span>{{/link-to}}
|
|
</div>
|
|
</header>
|
|
|
|
<section class="view-container">
|
|
{{gh-subscribers-table
|
|
table=table
|
|
isLoading=isLoading
|
|
loadNextPage=(action 'loadNextPage')
|
|
sortByColumn=(action 'sortByColumn')
|
|
delete=(action 'deleteSubscriber')}}
|
|
</section>
|
|
</section>
|
|
|
|
{{#if subscriberToDelete}}
|
|
{{gh-fullscreen-modal "delete-subscriber"
|
|
model=subscriberToDelete
|
|
confirm=(action "confirmDeleteSubscriber")
|
|
close=(action "cancelDeleteSubscriber")
|
|
modifier="action wide"}}
|
|
{{/if}}
|
|
|
|
{{outlet}}
|