2018-07-20 02:33:11 +08:00
|
|
|
{{#conditional-loading-spinner condition=isLoading}}
|
|
|
|
{{plugin-outlet name="admin-dashboard-general-top"}}
|
|
|
|
|
2020-04-30 23:31:04 +08:00
|
|
|
{{#if isCommunityHealthVisible}}
|
|
|
|
<div class="community-health section">
|
|
|
|
<div class="period-section">
|
|
|
|
<div class="section-title">
|
|
|
|
<h2>
|
|
|
|
<a href={{get-url "/admin/dashboard/reports"}}>
|
|
|
|
{{i18n "admin.dashboard.community_health"}}
|
|
|
|
</a>
|
|
|
|
</h2>
|
2020-10-05 16:32:12 +08:00
|
|
|
{{period-chooser
|
|
|
|
period=period
|
|
|
|
action=(action "changePeriod")
|
|
|
|
content=availablePeriods
|
|
|
|
fullDay=false}}
|
2020-04-30 23:31:04 +08:00
|
|
|
</div>
|
2018-07-20 02:33:11 +08:00
|
|
|
|
2020-04-30 23:31:04 +08:00
|
|
|
<div class="section-body">
|
|
|
|
<div class="charts">
|
|
|
|
{{admin-report
|
|
|
|
dataSourceName="consolidated_page_views"
|
|
|
|
forcedModes="stacked-chart"
|
|
|
|
filters=filters}}
|
|
|
|
|
|
|
|
{{admin-report
|
|
|
|
dataSourceName="signups"
|
|
|
|
showTrend=true
|
|
|
|
forcedModes="chart"
|
|
|
|
filters=filters}}
|
|
|
|
|
|
|
|
{{admin-report
|
|
|
|
dataSourceName="topics"
|
|
|
|
showTrend=true
|
|
|
|
forcedModes="chart"
|
|
|
|
filters=filters}}
|
|
|
|
|
|
|
|
{{admin-report
|
|
|
|
dataSourceName="posts"
|
|
|
|
showTrend=true
|
|
|
|
forcedModes="chart"
|
|
|
|
filters=filters}}
|
|
|
|
|
|
|
|
{{admin-report
|
|
|
|
dataSourceName="dau_by_mau"
|
|
|
|
showTrend=true
|
|
|
|
forcedModes="chart"
|
|
|
|
filters=filters}}
|
|
|
|
|
|
|
|
{{admin-report
|
|
|
|
dataSourceName="daily_engaged_users"
|
|
|
|
showTrend=true
|
|
|
|
forcedModes="chart"
|
|
|
|
filters=filters}}
|
|
|
|
|
|
|
|
{{admin-report
|
|
|
|
dataSourceName="new_contributors"
|
|
|
|
showTrend=true
|
|
|
|
forcedModes="chart"
|
|
|
|
filters=filters}}
|
|
|
|
</div>
|
2018-07-20 02:33:11 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-04-30 23:31:04 +08:00
|
|
|
{{/if}}
|
2018-07-20 02:33:11 +08:00
|
|
|
|
|
|
|
<div class="section-columns">
|
|
|
|
<div class="section-column">
|
2020-04-30 23:31:04 +08:00
|
|
|
{{#if isActivityMetricsVisible}}
|
|
|
|
{{#if activityMetrics.length}}
|
|
|
|
<div class="admin-report activity-metrics">
|
|
|
|
<div class="header">
|
|
|
|
<ul class="breadcrumb">
|
|
|
|
<li class="item report">
|
|
|
|
{{#link-to "adminReports" class="report-url"}}
|
|
|
|
{{i18n "admin.dashboard.activity_metrics"}}
|
|
|
|
{{/link-to}}
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="report-body">
|
|
|
|
<div class="counters-list">
|
|
|
|
<div class="counters-header">
|
|
|
|
<div class="counters-cell"></div>
|
|
|
|
<div class="counters-cell">{{i18n "admin.dashboard.reports.today"}}</div>
|
|
|
|
<div class="counters-cell">{{i18n "admin.dashboard.reports.yesterday"}}</div>
|
|
|
|
<div class="counters-cell">{{i18n "admin.dashboard.reports.last_7_days"}}</div>
|
|
|
|
<div class="counters-cell">{{i18n "admin.dashboard.reports.last_30_days"}}</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{#each activityMetrics as |metric|}}
|
|
|
|
{{admin-report
|
|
|
|
showHeader=false
|
|
|
|
filters=activityMetricsFilters
|
|
|
|
forcedModes="counters"
|
|
|
|
dataSourceName=metric}}
|
|
|
|
{{/each}}
|
2018-12-26 17:29:07 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-07-20 02:33:11 +08:00
|
|
|
</div>
|
2020-04-30 23:31:04 +08:00
|
|
|
{{/if}}
|
2018-12-26 17:29:07 +08:00
|
|
|
{{/if}}
|
2018-07-20 02:33:11 +08:00
|
|
|
|
|
|
|
<div class="user-metrics">
|
2018-08-07 04:57:40 +08:00
|
|
|
{{#conditional-loading-section isLoading=isLoading}}
|
|
|
|
{{admin-report
|
|
|
|
forcedModes="inline-table"
|
2018-09-13 23:35:54 +08:00
|
|
|
dataSourceName="users_by_type"}}
|
2018-07-20 02:33:11 +08:00
|
|
|
|
2018-08-07 04:57:40 +08:00
|
|
|
{{admin-report
|
|
|
|
forcedModes="inline-table"
|
2018-09-13 23:35:54 +08:00
|
|
|
dataSourceName="users_by_trust_level"}}
|
2018-08-07 04:57:40 +08:00
|
|
|
{{/conditional-loading-section}}
|
2018-07-20 02:33:11 +08:00
|
|
|
</div>
|
|
|
|
|
2018-12-15 06:14:46 +08:00
|
|
|
<div class="misc">
|
|
|
|
{{admin-report
|
|
|
|
forcedModes="storage-stats"
|
|
|
|
dataSourceName="storage_stats"
|
|
|
|
showHeader=false}}
|
|
|
|
|
|
|
|
<div class="last-dashboard-update">
|
|
|
|
<div>
|
2018-07-20 02:33:11 +08:00
|
|
|
<h4>{{i18n "admin.dashboard.last_updated"}} </h4>
|
2019-05-17 13:42:45 +08:00
|
|
|
<p>{{format-date model.attributes.updated_at leaveAgo="true"}}</p>
|
|
|
|
</div>
|
2019-08-28 19:37:42 +08:00
|
|
|
{{#if model.attributes.discourse_updated_at}}
|
|
|
|
<div>
|
|
|
|
<h4>{{i18n "admin.dashboard.discourse_last_updated"}} </h4>
|
|
|
|
<p>{{format-date model.attributes.discourse_updated_at leaveAgo="true"}}</p>
|
2020-04-17 04:38:10 +08:00
|
|
|
<a rel="noopener noreferrer" target="_blank" href={{model.attributes.release_notes_link}} class="btn btn-default">
|
2019-08-28 19:37:42 +08:00
|
|
|
{{i18n "admin.dashboard.whats_new_in_discourse"}}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2018-07-20 02:33:11 +08:00
|
|
|
</div>
|
2018-12-15 06:14:46 +08:00
|
|
|
</div>
|
2018-07-20 02:33:11 +08:00
|
|
|
</div>
|
|
|
|
|
2020-04-30 23:31:04 +08:00
|
|
|
{{#if isSearchReportsVisible}}
|
|
|
|
<div class="section-column">
|
|
|
|
{{admin-report
|
|
|
|
filters=topReferredTopicsFilters
|
|
|
|
dataSourceName="top_referred_topics"
|
|
|
|
reportOptions=topReferredTopicsOptions}}
|
|
|
|
|
|
|
|
{{admin-report
|
|
|
|
dataSourceName="trending_search"
|
|
|
|
reportOptions=trendingSearchOptions
|
|
|
|
filters=trendingSearchFilters
|
|
|
|
isEnabled=logSearchQueriesEnabled
|
|
|
|
disabledLabel=trendingSearchDisabledLabel}}
|
2020-08-25 17:42:50 +08:00
|
|
|
{{html-safe (i18n "admin.dashboard.reports.trending_search.more" basePath=(base-path))}}
|
2020-04-30 23:31:04 +08:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
2018-07-20 02:33:11 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{{plugin-outlet name="admin-dashboard-general-bottom"}}
|
|
|
|
{{/conditional-loading-spinner}}
|