Ghost/ghost/admin/app/components/dashboard/dashboard-v5.hbs

92 lines
3.3 KiB
Handlebars
Raw Normal View History

<section {{did-insert this.onInsert}}>
{{#if this.isLoading }}
<GhLoadingSpinner />
{{else}}
{{#if this.areMembersEnabled}}
<section class="prototype-section">
<Dashboard::V5::ChartMembersCounts />
</section>
<section class="prototype-section">
<div class="prototype-selection">
<PowerSelect
@selected={{this.selectedDaysOption}}
@options={{this.daysOptions}}
@searchEnabled={{false}}
@onChange={{this.onDaysChange}}
@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>
<article class="gh-dashboard-box">
<Dashboard::V5::ChartTotalMembers @days={{this.days}} />
</article>
{{#if this.hasPaidTiers}}
<div class="prototype-section">
<div class="prototype-counts">
<article class="prototype-box">
<Dashboard::V5::ChartMonthlyRevenue @days={{this.days}} />
</article>
<article class="prototype-box">
<Dashboard::V5::ChartTotalPaid @days={{this.days}} />
</article>
</div>
</div>
<div class="prototype-section">
<div class="prototype-counts">
<article class="prototype-box">
<Dashboard::V5::ChartPaidMembers @days={{this.days}}/>
</article>
<article class="prototype-box">
<Dashboard::V5::ChartPaidMix />
</article>
</div>
</div>
{{/if}}
</section>
<section class="prototype-section">
<Dashboard::V5::ChartEngagement />
</section>
{{/if}}
{{#if this.areNewslettersEnabled}}
<section class="prototype-section">
<Dashboard::V5::ChartEmailOpenRate />
</section>
{{/if}}
<section class="prototype-section">
<h2>Recent posts</h2>
<article class="gh-dashboard-box">
Recent posts
</article>
</section>
<section class="prototype-section">
<h2>Activity</h2>
<Dashboard::LatestMemberActivity />
</section>
<section class="prototype-section">
<h2>Resources</h2>
<article class="gh-dashboard-box">
<Dashboard::V5::ResourceGeneral />
</article>
</section>
<Dashboard::V5::PrototypeControlPanel />
{{/if}}
</section>