mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 20:34:02 +03:00
Refined all sources list on dashboard
refs https://github.com/orgs/TryGhost/projects/77 - shows single selected column on the all referrer sources list in dashboard
This commit is contained in:
parent
5eae093b3c
commit
fa2292806a
@ -7,10 +7,12 @@
|
||||
<div class="modal-body pa">
|
||||
<div>
|
||||
<div class="gh-dashboard-list-header">
|
||||
<div class="gh-dashboard-list-title">Sources</div>
|
||||
{{#if (eq @data.sortColumn "signups")}} <div class="gh-dashboard-list-title">Sources</div> {{/if}}
|
||||
<div class="gh-dashboard-list-title">Free signups</div>
|
||||
{{#if this.membersUtils.paidMembersEnabled}}
|
||||
<div class="gh-dashboard-list-title"><span class="hide-when-small">Paid </span>Conversions</div>
|
||||
{{#if (eq @data.sortColumn "paid")}}
|
||||
{{#if this.membersUtils.paidMembersEnabled}}
|
||||
<div class="gh-dashboard-list-title"><span class="hide-when-small">Paid </span>Conversions</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="gh-dashboard-list-body">
|
||||
@ -20,6 +22,7 @@
|
||||
<div class="gh-dashboard-list-item-sub gh-dashboard-list-item-sub-source">
|
||||
<span class="gh-dashboard-list-text">{{sourceData.source}}</span>
|
||||
</div>
|
||||
{{#if (eq @data.sortColumn "signups")}}
|
||||
<div class="gh-dashboard-list-item-sub">
|
||||
<span class="gh-dashboard-metric-minivalue">
|
||||
{{#if sourceData.signups}}
|
||||
@ -29,16 +32,19 @@
|
||||
{{/if}}
|
||||
</span>
|
||||
</div>
|
||||
{{#if this.membersUtils.paidMembersEnabled}}
|
||||
<div class="gh-dashboard-list-item-sub">
|
||||
<span class="gh-dashboard-metric-minivalue">
|
||||
{{#if sourceData.paidConversions}}
|
||||
{{format-number sourceData.paidConversions}}
|
||||
{{else}}
|
||||
—
|
||||
{{/if}}
|
||||
</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if (eq @data.sortColumn "paid")}}
|
||||
{{#if this.membersUtils.paidMembersEnabled}}
|
||||
<div class="gh-dashboard-list-item-sub">
|
||||
<span class="gh-dashboard-metric-minivalue">
|
||||
{{#if sourceData.paidConversions}}
|
||||
{{format-number sourceData.paidConversions}}
|
||||
{{else}}
|
||||
—
|
||||
{{/if}}
|
||||
</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</div>
|
||||
{{else}}
|
||||
|
@ -13,7 +13,8 @@ export default class SourceAttributionTable extends Component {
|
||||
const allSources = this.unavailableSource ? [...this.sortedSources, this.unavailableSource] : this.sortedSources;
|
||||
|
||||
this.modals.open(AllSourcesModal, {
|
||||
sources: allSources
|
||||
sources: allSources,
|
||||
sortColumn: this.args.sortColumn
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user