2022-09-29 14:00:30 +03:00
|
|
|
<h4 class="gh-main-section-header small bn">
|
|
|
|
Newsletter clicks
|
|
|
|
</h4>
|
|
|
|
<div class="gh-post-analytics-box column">
|
|
|
|
<div class="gh-links-list">
|
2022-09-29 18:14:15 +03:00
|
|
|
<div class="gh-links-list-header">
|
|
|
|
<div class="gh-links-list-title">
|
|
|
|
Link
|
|
|
|
</div>
|
|
|
|
<div class="gh-links-list-title">
|
|
|
|
No. of Members
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-09-29 14:00:30 +03:00
|
|
|
{{#each this.visibleLinks as |link|}}
|
|
|
|
<div class="gh-links-list-item">
|
2022-10-14 19:09:42 +03:00
|
|
|
{{#if (feature "fixNewsletterLinks")}}
|
2022-10-18 11:53:34 +03:00
|
|
|
<div class="gh-links-list-url">
|
2022-10-14 19:09:42 +03:00
|
|
|
{{#if link.isEditing}}
|
2022-10-18 11:53:34 +03:00
|
|
|
<div class="gh-links-list-input-container">
|
2022-10-14 19:09:42 +03:00
|
|
|
<input
|
|
|
|
aria-label="Link"
|
|
|
|
type="text"
|
|
|
|
class="gh-input"
|
|
|
|
placeholder={{link.link.to}}
|
|
|
|
value={{link.link.to}}
|
|
|
|
maxlength="300"
|
|
|
|
{{on "blur" this.setLink}}
|
|
|
|
{{on-key "Enter" this.blurElement}}
|
|
|
|
{{on-key "Escape" this.cancelEdit}}
|
|
|
|
{{autofocus}}
|
|
|
|
data-prevent-escape-close-modal="true"
|
|
|
|
/>
|
2022-10-18 11:53:34 +03:00
|
|
|
<span class="gh-links-list-item-error">Please enter a valid link</span>
|
|
|
|
</div>
|
2022-10-14 19:09:42 +03:00
|
|
|
{{else}}
|
|
|
|
<a href="{{link.link.to}}" target="_blank" rel="noopener noreferrer">
|
|
|
|
{{link.link.title}}
|
|
|
|
</a>
|
2022-10-18 11:53:34 +03:00
|
|
|
<button type="button" class="flex items-center gh-links-list-item-edit" aria-label="Edit link" {{on "click" (fn this.editLink link.link.link_id)}}>{{svg-jar "pen"}}</button>
|
|
|
|
<span class="gh-links-list-item-success">{{svg-jar "check-circle"}}</span>
|
2022-10-14 19:09:42 +03:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
{{else}}
|
2022-09-29 14:00:30 +03:00
|
|
|
<a href="{{link.link.to}}" target="_blank" rel="noopener noreferrer">{{link.link.title}}</a>
|
2022-10-14 19:09:42 +03:00
|
|
|
{{/if}}
|
2022-09-29 14:00:30 +03:00
|
|
|
<p class="gh-links-list-clicks">{{link.count.clicks}}</p>
|
|
|
|
</div>
|
|
|
|
{{/each}}
|
|
|
|
{{#if this.showPagination }}
|
2022-09-29 14:05:55 +03:00
|
|
|
<div class="gh-links-pagination" >
|
|
|
|
<div class="gh-links-pagination-progress">
|
|
|
|
Showing {{this.startOffset}}-{{this.endOffset}} of {{this.totalLinks}}
|
|
|
|
</div>
|
|
|
|
<div class="gh-links-pagination-actions">
|
2022-09-29 18:14:15 +03:00
|
|
|
<button type="button" class="gh-links-pagination-action gh-links-pagination-prev {{if this.disablePreviousPage "gh-links-pagination-disabled"}}" {{on "click" this.openPreviousPage}} disabled={{this.disablePreviousPage}}>
|
2022-09-29 14:05:55 +03:00
|
|
|
{{svg-jar "arrow-left-pagination"}}
|
|
|
|
Previous
|
|
|
|
</button>
|
2022-09-29 18:14:15 +03:00
|
|
|
<button type="button" class="gh-links-pagination-action gh-links-pagination-next {{if this.disableNextPage "gh-links-pagination-disabled"}}" {{on "click" this.openNextPage}} disabled={{this.disableNextPage}}>
|
2022-09-29 14:05:55 +03:00
|
|
|
Next
|
|
|
|
{{svg-jar "arrow-right-pagination"}}
|
|
|
|
</button>
|
|
|
|
</div>
|
2022-09-29 14:00:30 +03:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|