mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +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>
47 lines
1.7 KiB
Handlebars
47 lines
1.7 KiB
Handlebars
<section class="gh-dashboard5-section gh-dashboard5-engagement">
|
|
<article {{did-insert this.loadCharts}} class="gh-dashboard5-box">
|
|
<Dashboard::v5::Parts::Metric
|
|
@label="Engagement" />
|
|
|
|
<div class="gh-dashboard5-columns">
|
|
<div class="gh-dashboard5-column">
|
|
<Dashboard::v5::Parts::Metric
|
|
@label="Engaged in the last 30 days"
|
|
@value={{this.data30Days}}
|
|
@secondary={{true}}
|
|
/>
|
|
</div>
|
|
<div class="gh-dashboard5-column">
|
|
<Dashboard::v5::Parts::Metric
|
|
@label="Engaged in the last 7 days"
|
|
@value={{this.data7Days}}
|
|
@secondary={{true}}
|
|
/>
|
|
</div>
|
|
<div class="gh-dashboard5-column">
|
|
<Dashboard::v5::Parts::Metric
|
|
@label="Newsletter subscribers"
|
|
@value={{this.dataSubscribers}}
|
|
@secondary={{true}}
|
|
/>
|
|
</div>
|
|
</div>
|
|
</article>
|
|
|
|
<div class="gh-dashboard5-select">
|
|
<PowerSelect
|
|
@selected={{this.selectedStatusOption}}
|
|
@options={{this.statusOptions}}
|
|
@searchEnabled={{false}}
|
|
@onChange={{this.onSwitchStatus}}
|
|
@triggerComponent="gh-power-select/trigger"
|
|
@triggerClass="gh-contentfilter-menu-trigger"
|
|
@dropdownClass="gh-contentfilter-menu-dropdown"
|
|
@matchTriggerWidth={{false}}
|
|
as |option|
|
|
>
|
|
{{#if option.name}}{{option.name}}{{else}}<span class="red">Unknown option</span>{{/if}}
|
|
</PowerSelect>
|
|
</div>
|
|
</section>
|