2022-09-21 16:01:31 +03:00
|
|
|
<div ...attributes>
|
|
|
|
<div class="gh-dashboard-list-header">
|
2022-09-26 13:14:06 +03:00
|
|
|
<div class="gh-dashboard-list-title gh-dashboard-list-title-sources">Sources</div>
|
2022-09-28 13:57:44 +03:00
|
|
|
{{#if (eq @sortColumn "signups")}}
|
2022-09-26 20:59:30 +03:00
|
|
|
<div
|
2022-09-28 13:57:44 +03:00
|
|
|
class="gh-dashboard-list-title {{if (eq @sortColumn "signups") "sorted-by"}}"
|
|
|
|
role="button" aria-label="Sort by free signups"
|
|
|
|
{{on "click" (fn @setSortColumn "signups")}}
|
2022-09-26 20:59:30 +03:00
|
|
|
>
|
2022-09-28 14:44:24 +03:00
|
|
|
Free signups
|
2022-09-26 20:59:30 +03:00
|
|
|
</div>
|
2022-09-22 16:39:44 +03:00
|
|
|
{{/if}}
|
2022-09-28 13:57:44 +03:00
|
|
|
{{#if (eq @sortColumn "paid")}}
|
|
|
|
{{#if this.membersUtils.paidMembersEnabled}}
|
|
|
|
<div
|
|
|
|
role="button" aria-label="Sort by paid signups"
|
|
|
|
class="gh-dashboard-list-title {{if (eq @sortColumn "paid") "sorted-by"}}"
|
|
|
|
{{on "click" (fn @setSortColumn "paid")}}
|
|
|
|
>
|
2022-09-28 14:44:24 +03:00
|
|
|
<span class="hide-when-small">Paid </span>Conversions
|
2022-09-28 13:57:44 +03:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
2022-09-21 16:01:31 +03:00
|
|
|
</div>
|
2022-09-26 13:14:06 +03:00
|
|
|
<div class="gh-dashboard-list-body">
|
2022-09-22 21:27:03 +03:00
|
|
|
{{#each this.sources as |sourceData|}}
|
|
|
|
<div class="gh-dashboard-list-item">
|
|
|
|
<div class="gh-dashboard-list-item-sub gh-dashboard-list-item-sub-source">
|
|
|
|
<span class="gh-dashboard-list-text">{{sourceData.source}}</span>
|
|
|
|
</div>
|
2022-09-28 13:57:44 +03:00
|
|
|
{{#if (eq @sortColumn "signups")}}
|
2022-09-22 16:39:44 +03:00
|
|
|
<div class="gh-dashboard-list-item-sub">
|
2022-09-27 14:01:18 +03:00
|
|
|
{{#if sourceData.signups}}
|
|
|
|
<span class="gh-dashboard-metric-minivalue">
|
2022-09-22 21:27:03 +03:00
|
|
|
{{format-number sourceData.signups}}
|
2022-09-27 14:01:18 +03:00
|
|
|
</span>
|
|
|
|
{{else}}
|
|
|
|
<span class="gh-dashboard-metric-minivalue na">
|
2022-09-22 16:39:44 +03:00
|
|
|
—
|
2022-09-27 14:01:18 +03:00
|
|
|
</span>
|
|
|
|
{{/if}}
|
2022-09-22 16:39:44 +03:00
|
|
|
</div>
|
2022-09-28 13:57:44 +03:00
|
|
|
{{/if}}
|
|
|
|
{{#if (eq @sortColumn "paid")}}
|
|
|
|
{{#if this.membersUtils.paidMembersEnabled}}
|
|
|
|
<div class="gh-dashboard-list-item-sub">
|
|
|
|
{{#if sourceData.paidConversions}}
|
|
|
|
<span class="gh-dashboard-metric-minivalue">
|
|
|
|
{{format-number sourceData.paidConversions}}
|
|
|
|
</span>
|
|
|
|
{{else}}
|
|
|
|
<span class="gh-dashboard-metric-minivalue na">
|
|
|
|
—
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2022-09-22 21:27:03 +03:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
2022-09-27 17:46:34 +03:00
|
|
|
{{!-- {{else}}
|
2022-09-22 21:27:03 +03:00
|
|
|
<div class="gh-dashboard-list-empty">
|
|
|
|
<p>No sources.</p>
|
2022-09-27 17:46:34 +03:00
|
|
|
</div> --}}
|
2022-09-22 21:27:03 +03:00
|
|
|
{{/each}}
|
2022-09-24 21:45:12 +03:00
|
|
|
{{#if this.others}}
|
2022-09-26 16:30:15 +03:00
|
|
|
<div class="gh-dashboard-list-item">
|
|
|
|
<div class="gh-dashboard-list-item-sub gh-dashboard-list-item-sub-source gh-dashboard-list-item-other-source">
|
2022-09-28 17:47:29 +03:00
|
|
|
<span class="gh-dashboard-list-text" role="button" aria-label="Show sources"
|
|
|
|
{{on "click" this.openAllSources}}>Other sources →</span>
|
2022-09-24 21:45:12 +03:00
|
|
|
</div>
|
2022-09-28 13:57:44 +03:00
|
|
|
{{#if (eq @sortColumn "signups")}}
|
2022-09-24 21:45:12 +03:00
|
|
|
<div class="gh-dashboard-list-item-sub">
|
2022-09-28 13:57:44 +03:00
|
|
|
{{#if this.others.signups}}
|
2022-09-27 14:01:18 +03:00
|
|
|
<span class="gh-dashboard-metric-minivalue">
|
2022-09-28 13:57:44 +03:00
|
|
|
{{format-number this.others.signups}}
|
2022-09-27 14:01:18 +03:00
|
|
|
</span>
|
|
|
|
{{else}}
|
|
|
|
<span class="gh-dashboard-metric-minivalue na">
|
2022-09-24 21:45:12 +03:00
|
|
|
—
|
2022-09-27 14:01:18 +03:00
|
|
|
</span>
|
|
|
|
{{/if}}
|
2022-09-24 21:45:12 +03:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
2022-09-28 13:57:44 +03:00
|
|
|
{{#if (eq @sortColumn "paid")}}
|
|
|
|
{{#if this.membersUtils.paidMembersEnabled}}
|
|
|
|
<div class="gh-dashboard-list-item-sub">
|
|
|
|
{{#if this.others.paidConversions}}
|
|
|
|
<span class="gh-dashboard-metric-minivalue">
|
|
|
|
{{format-number this.others.paidConversions}}
|
|
|
|
</span>
|
|
|
|
{{else}}
|
|
|
|
<span class="gh-dashboard-metric-minivalue na">
|
|
|
|
—
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
2022-09-24 21:45:12 +03:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
2022-09-21 16:01:31 +03:00
|
|
|
</div>
|
2022-09-27 17:46:34 +03:00
|
|
|
</div>
|