mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
e4891e3462
refs: https://github.com/TryGhost/Team/issues/1507 - changed the layout over to use css grids instead of the random flex and divs - cleaned up the based dashboard-v5 file so its rendering much cleaner components - refactored and took out a ton of old css that wasn't needed anymore - moved the dashboard-v5 css into it's own css file to keep things cleaner - includes a few stylistic changes along the way
35 lines
1.3 KiB
Handlebars
35 lines
1.3 KiB
Handlebars
<section class="gh-dashboard5-section gh-dashboard5-engagement">
|
|
<article {{did-insert this.loadCharts}} class="gh-dashboard5-box">
|
|
<div class="gh-dashboard5-rows">
|
|
<div class="gh-dashboard5-row">
|
|
<Dashboard::v5::Parts::Metric
|
|
@label="Engaged over 30 days"
|
|
@value={{this.data30Days}}
|
|
/>
|
|
</div>
|
|
<div class="gh-dashboard5-row">
|
|
<Dashboard::v5::Parts::Metric
|
|
@label="Engaged over 7 days"
|
|
@value={{this.data7Days}}
|
|
/>
|
|
</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>
|