{{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 dataSourceName="signups" startDate=startDate endDate=endDate}} {{dashboard-mini-chart dataSourceName="topics" startDate=startDate endDate=endDate}} {{dashboard-mini-chart dataSourceName="posts" startDate=startDate endDate=endDate}} {{dashboard-mini-chart dataSourceName="dau_by_mau" average=true percent=true startDate=startDate endDate=endDate}} {{dashboard-mini-chart dataSourceName="daily_engaged_users" average=true startDate=startDate endDate=endDate}} {{dashboard-mini-chart dataSourceName="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 dataSourceName="users_by_type" lastRefreshedAt=lastRefreshedAt as |context|}} {{#each context.report.data as |data|}} {{number data.y}} {{/each}} {{/dashboard-inline-table}} {{#dashboard-inline-table dataSourceName="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}}

{{i18n "admin.dashboard.backups"}}

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

{{/if}}

{{i18n "admin.dashboard.uploads"}}

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


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


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

{{i18n "admin.dashboard.whats_new_in_discourse"}}
{{/conditional-loading-section}}
{{#dashboard-table-trending-search dataSourceName="trending_search" isEnabled=logSearchQueriesEnabled disabledLabel="admin.dashboard.reports.trending_search.disabled" startDate=lastWeek endDate=endDate}} {{{i18n "admin.dashboard.reports.trending_search.more"}}} {{/dashboard-table-trending-search}}