Subscribers {{#if this.fetchSubscribers.lastSuccessful}} ({{this.filteredSubscribers.length}}) {{else}} (Loading...) {{/if}}

{{#link-to "subscribers.import" class="gh-btn gh-btn-white mr2" data-test-link="import-csv"}}Import CSV{{/link-to}} Export CSV {{#link-to "subscribers.new" class="gh-btn gh-btn-green" data-test-link="add-subscriber"}}Add Subscriber{{/link-to}}
{{#link-to class="inline-flex items-center darkgrey" params=(subscribers-query-params "email" this.order this.direction)}} {{subscribers-sort-icon "email" this.order this.direction}} Email Address {{/link-to}} {{#link-to class="inline-flex items-center darkgrey" params=(subscribers-query-params "created_at" this.order this.direction)}} {{subscribers-sort-icon "created_at" this.order this.direction}} Subscription Date {{/link-to}} {{#link-to class="inline-flex items-center darkgrey" params=(subscribers-query-params "status" this.order this.direction)}} {{subscribers-sort-icon "status" this.order this.direction}} Status {{/link-to}}
{{#if this.sortedSubscribers}} {{else}} {{/if}}
{{subscriber.email}} {{moment-format subscriber.createdAtUTC 'MMMM DD, YYYY'}} {{subscriber.status}}
{{#if this.fetchSubscribers.isRunning}}
{{else}} {{!-- match height to delete button height for consistent spacing --}} No subscribers found. {{/if}}
{{#if this.subscriberToDelete}} {{/if}} {{outlet}}