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-26 20:59:30 +03:00
|
|
|
<div
|
|
|
|
class="gh-dashboard-list-title {{if (eq @sortColumn "signups") "sorted-by"}}"
|
|
|
|
role="button" aria-label="Sort by free signups"
|
|
|
|
{{on "click" (fn @setSortColumn "signups")}}
|
|
|
|
>
|
|
|
|
Signups {{svg-jar "arrow-down-small"}}
|
|
|
|
</div>
|
2022-09-22 16:39:44 +03:00
|
|
|
{{#if this.membersUtils.paidMembersEnabled}}
|
2022-09-26 20:59:30 +03:00
|
|
|
<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")}}
|
|
|
|
>
|
|
|
|
<span class="hide-when-small">Paid </span>Conversions {{svg-jar "arrow-down-small"}}
|
|
|
|
</div>
|
2022-09-22 16:39:44 +03:00
|
|
|
{{/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-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-22 21:27:03 +03:00
|
|
|
{{#if this.membersUtils.paidMembersEnabled}}
|
|
|
|
<div class="gh-dashboard-list-item-sub">
|
2022-09-27 14:01:18 +03:00
|
|
|
{{#if sourceData.paidConversions}}
|
|
|
|
<span class="gh-dashboard-metric-minivalue">
|
2022-09-22 21:27:03 +03:00
|
|
|
{{format-number sourceData.paidConversions}}
|
2022-09-27 14:01:18 +03:00
|
|
|
</span>
|
|
|
|
{{else}}
|
|
|
|
<span class="gh-dashboard-metric-minivalue na">
|
2022-09-22 21:27:03 +03:00
|
|
|
—
|
2022-09-27 14:01:18 +03:00
|
|
|
</span>
|
|
|
|
{{/if}}
|
2022-09-22 21:27:03 +03:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
<div class="gh-dashboard-list-empty">
|
|
|
|
<p>No sources.</p>
|
|
|
|
</div>
|
|
|
|
{{/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">
|
|
|
|
<div class="gh-dashboard-list-text">Other <span role="button" aria-label="Show sources"
|
|
|
|
{{on "click" this.openAllSources}}>(<span>see all</span>)</span></div>
|
2022-09-24 21:45:12 +03:00
|
|
|
</div>
|
|
|
|
<div class="gh-dashboard-list-item-sub">
|
2022-09-27 14:01:18 +03:00
|
|
|
{{#if this.others.signups}}
|
|
|
|
<span class="gh-dashboard-metric-minivalue">
|
2022-09-24 21:45:12 +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 this.membersUtils.paidMembersEnabled}}
|
|
|
|
<div class="gh-dashboard-list-item-sub">
|
2022-09-27 14:01:18 +03:00
|
|
|
{{#if this.others.paidConversions}}
|
|
|
|
<span class="gh-dashboard-metric-minivalue">
|
2022-09-24 21:45:12 +03:00
|
|
|
{{format-number this.others.paidConversions}}
|
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}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2022-09-21 16:01:31 +03:00
|
|
|
</div>
|
|
|
|
</div>
|