mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 09:52:06 +03:00
d63f4548c0
refs https://github.com/TryGhost/Team/issues/1986 - removes attribution section from dashboard and post analytics if site is invite only
88 lines
3.7 KiB
Handlebars
88 lines
3.7 KiB
Handlebars
<section class="gh-canvas" {{scroll-top}}>
|
|
<div class="gh-dashboard">
|
|
<div class="gh-dashboard-inner">
|
|
<GhCanvasHeader class="gh-canvas-header">
|
|
<h2 class="gh-canvas-title" data-test-screen-title>
|
|
Dashboard
|
|
</h2>
|
|
</GhCanvasHeader>
|
|
</div>
|
|
<section class="gh-dashboard-layout">
|
|
{{#if this.isLoading }}
|
|
<GhLoadingSpinner />
|
|
{{else}}
|
|
{{#if this.areMembersEnabled}}
|
|
{{#if this.hasPaidTiers}}
|
|
<Dashboard::Charts::Overview />
|
|
{{/if}}
|
|
|
|
<div class="gh-dashboard-group {{if this.isTotalMembersZero 'is-zero'}}">
|
|
{{#if (feature 'sourceAttribution')}}
|
|
<Dashboard::Charts::Anchors />
|
|
{{else}}
|
|
<Dashboard::Charts::Anchor />
|
|
{{/if}}
|
|
{{#if this.hasPaidTiers}}
|
|
{{#if (feature 'sourceAttribution')}}
|
|
<section class="gh-dashboard-section">
|
|
<article class="gh-dashboard-box gh-dashboard-minicharts-attribution">
|
|
<Dashboard::Charts::PaidBreakdown />
|
|
<Dashboard::Charts::PaidMix />
|
|
</article>
|
|
</section>
|
|
{{#unless this.membersUtils.isMembersInviteOnly}}
|
|
<Dashboard::Charts::Attribution />
|
|
{{/unless}}
|
|
{{/if}}
|
|
{{/if}}
|
|
{{#if this.areNewslettersEnabled}}
|
|
<Dashboard::Charts::Engagement />
|
|
{{/if}}
|
|
|
|
{{#if this.isTotalMembersZero}}
|
|
<Dashboard::Parts::Zero />
|
|
{{/if}}
|
|
</div>
|
|
{{/if}}
|
|
|
|
<Dashboard::Charts::Recents />
|
|
|
|
<div class="gh-dashboard-split gh-dashboard-box is-secondary">
|
|
<Dashboard::Resources::Resources />
|
|
<Dashboard::Resources::Newsletter />
|
|
</div>
|
|
|
|
<Dashboard::Resources::ExploreFeed />
|
|
|
|
<div class="gh-dashboard-split gh-dashboard-box no-boarder">
|
|
<Dashboard::Resources::Community />
|
|
<Dashboard::Resources::WhatsNew />
|
|
</div>
|
|
{{/if}}
|
|
|
|
{{#unless this.isTotalMembersZero}}
|
|
<div class="gh-dashboard-select">
|
|
<PowerSelect
|
|
@selected={{this.selectedDaysOption}}
|
|
@options={{this.daysOptions}}
|
|
@searchEnabled={{false}}
|
|
@onChange={{this.onDaysChange}}
|
|
@triggerComponent={{component "gh-power-select/trigger"}}
|
|
@triggerClass="gh-contentfilter-menu-trigger"
|
|
@dropdownClass="gh-contentfilter-menu-dropdown is-narrow"
|
|
@matchTriggerWidth={{false}}
|
|
@horizontalPosition="right"
|
|
as |option|
|
|
>
|
|
{{#if option.name}}{{option.name}}{{else}}<span class="red">Unknown option</span>{{/if}}
|
|
</PowerSelect>
|
|
</div>
|
|
{{/unless}}
|
|
</section>
|
|
|
|
{{#if (enable-developer-experiments)}}
|
|
<Dashboard::Prototype::ControlPanel />
|
|
{{/if}}
|
|
</div>
|
|
</section>
|