2018-07-19 14:33:11 -04:00
|
|
|
{{#conditional-loading-spinner condition=isLoading}}
|
|
|
|
{{plugin-outlet name="admin-dashboard-general-top"}}
|
|
|
|
|
2020-04-30 11:31:04 -04: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 04:32:12 -04:00
|
|
|
{{period-chooser
|
|
|
|
period=period
|
|
|
|
action=(action "changePeriod")
|
|
|
|
content=availablePeriods
|
|
|
|
fullDay=false}}
|
2020-04-30 11:31:04 -04:00
|
|
|
</div>
|
2018-07-19 14:33:11 -04:00
|
|
|
|
2020-04-30 11:31:04 -04: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-19 14:33:11 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-04-30 11:31:04 -04:00
|
|
|
{{/if}}
|
2018-07-19 14:33:11 -04:00
|
|
|
|
|
|
|
<div class="section-columns">
|
|
|
|
<div class="section-column">
|
2020-04-30 11:31:04 -04: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 04:29:07 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-07-19 14:33:11 -04:00
|
|
|
</div>
|
2020-04-30 11:31:04 -04:00
|
|
|
{{/if}}
|
2018-12-26 04:29:07 -05:00
|
|
|
{{/if}}
|
2018-07-19 14:33:11 -04:00
|
|
|
|
|
|
|
<div class="user-metrics">
|
2018-08-06 16:57:40 -04:00
|
|
|
{{#conditional-loading-section isLoading=isLoading}}
|
|
|
|
{{admin-report
|
|
|
|
forcedModes="inline-table"
|
2018-09-13 11:35:54 -04:00
|
|
|
dataSourceName="users_by_type"}}
|
2018-07-19 14:33:11 -04:00
|
|
|
|
2018-08-06 16:57:40 -04:00
|
|
|
{{admin-report
|
|
|
|
forcedModes="inline-table"
|
2018-09-13 11:35:54 -04:00
|
|
|
dataSourceName="users_by_trust_level"}}
|
2018-08-06 16:57:40 -04:00
|
|
|
{{/conditional-loading-section}}
|
2018-07-19 14:33:11 -04:00
|
|
|
</div>
|
|
|
|
|
2018-12-14 17:14:46 -05:00
|
|
|
<div class="misc">
|
|
|
|
{{admin-report
|
|
|
|
forcedModes="storage-stats"
|
|
|
|
dataSourceName="storage_stats"
|
|
|
|
showHeader=false}}
|
|
|
|
|
|
|
|
<div class="last-dashboard-update">
|
|
|
|
<div>
|
2018-07-19 14:33:11 -04:00
|
|
|
<h4>{{i18n "admin.dashboard.last_updated"}} </h4>
|
2019-05-17 01:42:45 -04:00
|
|
|
<p>{{format-date model.attributes.updated_at leaveAgo="true"}}</p>
|
|
|
|
</div>
|
2019-08-28 07:37:42 -04: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-16 16:38:10 -04:00
|
|
|
<a rel="noopener noreferrer" target="_blank" href={{model.attributes.release_notes_link}} class="btn btn-default">
|
2019-08-28 07:37:42 -04:00
|
|
|
{{i18n "admin.dashboard.whats_new_in_discourse"}}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2018-07-19 14:33:11 -04:00
|
|
|
</div>
|
2018-12-14 17:14:46 -05:00
|
|
|
</div>
|
2018-07-19 14:33:11 -04:00
|
|
|
</div>
|
|
|
|
|
2020-04-30 11:31:04 -04: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 05:42:50 -04:00
|
|
|
{{html-safe (i18n "admin.dashboard.reports.trending_search.more" basePath=(base-path))}}
|
2020-04-30 11:31:04 -04:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
2018-07-19 14:33:11 -04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{{plugin-outlet name="admin-dashboard-general-bottom"}}
|
|
|
|
{{/conditional-loading-spinner}}
|