Ghost/ghost/admin/app/components/dashboard/v5/chart-engagement.hbs
James Morris 1fc31fa60d Added more tweaks for Dashboard 5.0
refs: https://github.com/TryGhost/Team/issues/1445

- includes more tweaks
- adds on to recent merged conflicts commit
2022-03-24 15:08:12 +00:00

32 lines
1.3 KiB
Handlebars

<div class="gh-dashboard5-header">
<h3 {{did-insert this.loadCharts}}>Engagement</h3>
<div class="prototype-selection">
<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>
</div>
<div class="gh-dashboard5-container">
<div class="gh-dashboard5-box">
<h4 class="gh-dashboard5-metric">Engaged in past 30 days</h4>
<div class="gh-dashboard5-number is-small">{{this.data30Days}}</div>
<div class="gh-dashboard5-percentage is-positive">+2.2%</div>
</div>
<div class="gh-dashboard5-box">
<h4 class="gh-dashboard5-metric">Engaged in past 7 days</h4>
<div class="gh-dashboard5-number is-small">{{this.data7Days}}</div>
<div class="gh-dashboard5-percentage is-negative">-1.1%</div>
</div>
</div>