mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-27 12:53:13 +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,11 +7,13 @@
|
|||||||
<div class="modal-body pa">
|
<div class="modal-body pa">
|
||||||
<div>
|
<div>
|
||||||
<div class="gh-dashboard-list-header">
|
<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>
|
<div class="gh-dashboard-list-title">Free signups</div>
|
||||||
|
{{#if (eq @data.sortColumn "paid")}}
|
||||||
{{#if this.membersUtils.paidMembersEnabled}}
|
{{#if this.membersUtils.paidMembersEnabled}}
|
||||||
<div class="gh-dashboard-list-title"><span class="hide-when-small">Paid </span>Conversions</div>
|
<div class="gh-dashboard-list-title"><span class="hide-when-small">Paid </span>Conversions</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
<div class="gh-dashboard-list-body">
|
<div class="gh-dashboard-list-body">
|
||||||
<div class="gh-dashboard-attribution-list-scrollable">
|
<div class="gh-dashboard-attribution-list-scrollable">
|
||||||
@ -20,6 +22,7 @@
|
|||||||
<div class="gh-dashboard-list-item-sub gh-dashboard-list-item-sub-source">
|
<div class="gh-dashboard-list-item-sub gh-dashboard-list-item-sub-source">
|
||||||
<span class="gh-dashboard-list-text">{{sourceData.source}}</span>
|
<span class="gh-dashboard-list-text">{{sourceData.source}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
{{#if (eq @data.sortColumn "signups")}}
|
||||||
<div class="gh-dashboard-list-item-sub">
|
<div class="gh-dashboard-list-item-sub">
|
||||||
<span class="gh-dashboard-metric-minivalue">
|
<span class="gh-dashboard-metric-minivalue">
|
||||||
{{#if sourceData.signups}}
|
{{#if sourceData.signups}}
|
||||||
@ -29,6 +32,8 @@
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
{{#if (eq @data.sortColumn "paid")}}
|
||||||
{{#if this.membersUtils.paidMembersEnabled}}
|
{{#if this.membersUtils.paidMembersEnabled}}
|
||||||
<div class="gh-dashboard-list-item-sub">
|
<div class="gh-dashboard-list-item-sub">
|
||||||
<span class="gh-dashboard-metric-minivalue">
|
<span class="gh-dashboard-metric-minivalue">
|
||||||
@ -40,6 +45,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
<div class="gh-dashboard-list-empty">
|
<div class="gh-dashboard-list-empty">
|
||||||
|
@ -13,7 +13,8 @@ export default class SourceAttributionTable extends Component {
|
|||||||
const allSources = this.unavailableSource ? [...this.sortedSources, this.unavailableSource] : this.sortedSources;
|
const allSources = this.unavailableSource ? [...this.sortedSources, this.unavailableSource] : this.sortedSources;
|
||||||
|
|
||||||
this.modals.open(AllSourcesModal, {
|
this.modals.open(AllSourcesModal, {
|
||||||
sources: allSources
|
sources: allSources,
|
||||||
|
sortColumn: this.args.sortColumn
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user