mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 02:11:44 +03:00
a06003e7b5
refs: https://github.com/TryGhost/Team/issues/1531 - broke apart the combined chart - added back in the paid mix chart - separated out the mini charts into separate components - made top chart work with total, paid and free - added in an overview section back at the top for total, paid, free - made metric labels and values larger and easier to parse Co-authored-by: Simon Backx <simon@ghost.org>
33 lines
1.4 KiB
Handlebars
33 lines
1.4 KiB
Handlebars
<section class="gh-dashboard5-section gh-dashboard5-overview">
|
|
<article {{did-insert this.loadCharts}} class="gh-dashboard5-box is-secondary">
|
|
|
|
<div class="gh-dashboard5-columns">
|
|
<div class="gh-dashboard5-column">
|
|
<Dashboard::v5::Parts::Metric
|
|
@label={{gh-pluralize this.totalMembers "Total member" without-count=true}}
|
|
@value={{this.totalMembersFormatted}}
|
|
@trends={{this.hasTrends}}
|
|
@percentage={{this.totalMembersTrend}}
|
|
@large={{true}} />
|
|
</div>
|
|
<div class="gh-dashboard5-column">
|
|
<Dashboard::v5::Parts::Metric
|
|
@label={{gh-pluralize this.paidMembers "Paid member" without-count=true}}
|
|
@value={{this.paidMembersFormatted}}
|
|
@trends={{this.hasTrends}}
|
|
@percentage={{this.paidMembersTrend}}
|
|
@large={{true}} />
|
|
</div>
|
|
<div class="gh-dashboard5-column">
|
|
<Dashboard::v5::Parts::Metric
|
|
@label={{gh-pluralize this.freeMembers "Free member" without-count=true}}
|
|
@value={{this.freeMembersFormatted}}
|
|
@trends={{this.hasTrends}}
|
|
@percentage={{this.freeMembersTrend}}
|
|
@large={{true}} />
|
|
</div>
|
|
</div>
|
|
|
|
</article>
|
|
</section>
|