{{plugin-outlet name="admin-dashboard-top"}}
{{#if showVersionChecks}}
{{partial 'admin/templates/version-checks'}} {{partial 'admin/templates/dashboard-problems'}}
{{/if}}

{{i18n "admin.dashboard.community_health"}}

{{period-chooser period=period action="changePeriod" content=availablePeriods fullDay=true}}
{{dashboard-mini-chart dataSourceNames="signups" startDate=startDate endDate=endDate}} {{dashboard-mini-chart dataSourceNames="topics" startDate=startDate endDate=endDate}} {{dashboard-mini-chart dataSourceNames="posts" startDate=startDate endDate=endDate}} {{dashboard-mini-chart dataSourceNames="dau_by_mau" startDate=startDate endDate=endDate}} {{dashboard-mini-chart dataSourceNames="daily_engaged_users" startDate=startDate endDate=endDate}} {{dashboard-mini-chart dataSourceNames="new_contributors" startDate=startDate endDate=endDate}}
{{#conditional-loading-section isLoading=isLoading title=(i18n "admin.dashboard.activity_metrics")}}

{{i18n "admin.dashboard.activity_metrics"}}

{{#each reports as |report|}} {{admin-report-counts report=report allTime=false}} {{/each}}
{{i18n 'admin.dashboard.reports.today'}} {{i18n 'admin.dashboard.reports.yesterday'}} {{i18n 'admin.dashboard.reports.last_7_days'}} {{i18n 'admin.dashboard.reports.last_30_days'}}
{{/conditional-loading-section}}
{{#dashboard-inline-table dataSourceNames="users_by_type,users_by_trust_level" lastRefreshedAt=lastRefreshedAt as |context|}} {{#each context.report.data as |data|}} {{number data.y}} {{/each}} {{/dashboard-inline-table}} {{#conditional-loading-section isLoading=isLoading title=(i18n "admin.dashboard.backups")}}
{{#if currentUser.admin}}

{{d-icon "archive"}} {{i18n "admin.dashboard.backups"}}

{{diskSpace.backups_used}} ({{i18n "admin.dashboard.space_free" size=diskSpace.backups_free}})
{{{i18n "admin.dashboard.lastest_backup" date=backupTimestamp}}}

{{/if}}

{{d-icon "upload"}} {{i18n "admin.dashboard.uploads"}}

{{diskSpace.uploads_used}} ({{i18n "admin.dashboard.space_free" size=diskSpace.uploads_free}})

{{i18n "admin.dashboard.last_updated"}}

{{updatedTimestamp}}

{{i18n "admin.dashboard.whats_new_in_discourse"}}

{{i18n 'admin.dashboard.find_old'}} {{#link-to 'admin.dashboard'}}{{i18n "admin.dashboard.old_link"}}{{/link-to}}

{{/conditional-loading-section}}
{{#dashboard-inline-table dataSourceNames="top_referred_topics" lastRefreshedAt=lastRefreshedAt limit=8 as |context|}} {{#each context.report.data as |data|}} {{data.topic_title}} {{data.num_clicks}} {{/each}} {{/dashboard-inline-table}}