2018-05-03 21:41:41 +08:00
|
|
|
{{plugin-outlet name="admin-dashboard-top"}}
|
2018-04-26 20:49:41 +08:00
|
|
|
|
2018-04-20 00:19:21 +08:00
|
|
|
<div class="community-health section">
|
|
|
|
<div class="section-title">
|
|
|
|
<h2>{{i18n "admin.dashboard.community_health"}}</h2>
|
|
|
|
{{period-chooser period=period action="changePeriod"}}
|
|
|
|
</div>
|
2018-04-16 16:42:06 +08:00
|
|
|
|
2018-04-20 00:19:21 +08:00
|
|
|
<div class="section-body">
|
|
|
|
<div class="charts">
|
|
|
|
{{dashboard-mini-chart
|
|
|
|
dataSourceName="signups"
|
|
|
|
startDate=startDate
|
2018-04-26 20:49:41 +08:00
|
|
|
endDate=endDate}}
|
2018-04-19 03:30:41 +08:00
|
|
|
|
2018-04-20 00:19:21 +08:00
|
|
|
{{dashboard-mini-chart
|
|
|
|
dataSourceName="topics"
|
|
|
|
startDate=startDate
|
2018-04-26 20:49:41 +08:00
|
|
|
endDate=endDate}}
|
|
|
|
|
|
|
|
{{dashboard-mini-chart
|
|
|
|
dataSourceName="new_contributors"
|
|
|
|
startDate=startDate
|
|
|
|
endDate=endDate}}
|
2018-05-03 21:41:41 +08:00
|
|
|
|
|
|
|
{{dashboard-mini-chart
|
|
|
|
dataSourceName="dau_by_mau"
|
|
|
|
average=true
|
|
|
|
startDate=startDate
|
|
|
|
endDate=endDate}}
|
|
|
|
|
|
|
|
{{dashboard-mini-chart
|
|
|
|
dataSourceName="daily_engaged_users"
|
|
|
|
startDate=startDate
|
|
|
|
endDate=endDate}}
|
|
|
|
|
|
|
|
{{dashboard-mini-chart
|
|
|
|
dataSourceName="inactive_users"
|
|
|
|
startDate=startDate
|
|
|
|
endDate=endDate}}
|
2018-04-16 16:42:06 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-04-20 00:19:21 +08:00
|
|
|
</div>
|
2018-04-16 16:42:06 +08:00
|
|
|
|
2018-04-20 00:19:21 +08:00
|
|
|
<div class="section-columns">
|
|
|
|
<div class="section-column">
|
2018-04-26 20:49:41 +08:00
|
|
|
<div class="dashboard-table">
|
2018-05-03 21:41:41 +08:00
|
|
|
{{#conditional-loading-section isLoading=isLoading title=(i18n "admin.dashboard.activity_metrics")}}
|
|
|
|
<div class="table-title">
|
|
|
|
<h3>{{i18n "admin.dashboard.activity_metrics"}}</h3>
|
|
|
|
</div>
|
2018-04-26 20:49:41 +08:00
|
|
|
|
2018-05-03 21:41:41 +08:00
|
|
|
<div class="table-container">
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th></th>
|
|
|
|
<th>{{i18n 'admin.dashboard.reports.today'}}</th>
|
|
|
|
<th>{{i18n 'admin.dashboard.reports.yesterday'}}</th>
|
|
|
|
<th>{{i18n 'admin.dashboard.reports.last_7_days'}}</th>
|
|
|
|
<th>{{i18n 'admin.dashboard.reports.last_30_days'}}</th>
|
|
|
|
<th>{{i18n 'admin.dashboard.reports.all'}}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{#each reports as |report|}}
|
|
|
|
{{admin-report-counts report=report}}
|
|
|
|
{{/each}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{{/conditional-loading-section}}
|
2018-04-26 20:49:41 +08:00
|
|
|
</div>
|
|
|
|
|
2018-04-20 00:19:21 +08:00
|
|
|
{{dashboard-inline-table
|
2018-05-03 21:41:41 +08:00
|
|
|
dataSourceName="users_by_type"
|
|
|
|
lastRefreshedAt=lastRefreshedAt}}
|
2018-04-19 03:30:41 +08:00
|
|
|
|
2018-04-20 00:19:21 +08:00
|
|
|
{{dashboard-inline-table
|
2018-05-03 21:41:41 +08:00
|
|
|
dataSourceName="users_by_trust_level"
|
|
|
|
lastRefreshedAt=lastRefreshedAt}}
|
2018-04-19 03:30:41 +08:00
|
|
|
|
2018-05-03 21:41:41 +08:00
|
|
|
{{#conditional-loading-section isLoading=isLoading title=(i18n "admin.dashboard.backups")}}
|
2018-04-20 00:19:21 +08:00
|
|
|
<div class="misc">
|
|
|
|
<div class="durability">
|
|
|
|
{{#if currentUser.admin}}
|
|
|
|
<div class="backups">
|
|
|
|
<h3 class="durability-title"><a href="/admin/backups">{{i18n "admin.dashboard.backups"}}</a></h3>
|
2018-04-19 03:30:41 +08:00
|
|
|
<p>
|
2018-04-26 20:49:41 +08:00
|
|
|
{{diskSpace.backups_used}} ({{i18n "admin.dashboard.space_free" size=diskSpace.backups_free}})
|
2018-04-20 00:19:21 +08:00
|
|
|
<br />
|
|
|
|
{{{i18n "admin.dashboard.lastest_backup" date=backupTimestamp}}}
|
2018-04-19 03:30:41 +08:00
|
|
|
</p>
|
|
|
|
</div>
|
2018-04-20 00:19:21 +08:00
|
|
|
{{/if}}
|
2018-04-19 03:30:41 +08:00
|
|
|
|
2018-04-20 00:19:21 +08:00
|
|
|
<div class="uploads">
|
|
|
|
<h3 class="durability-title">{{i18n "admin.dashboard.uploads"}}</h3>
|
|
|
|
<p>
|
2018-04-26 20:49:41 +08:00
|
|
|
{{diskSpace.uploads_used}} ({{i18n "admin.dashboard.space_free" size=diskSpace.uploads_free}})
|
2018-04-20 00:19:21 +08:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-04-19 03:30:41 +08:00
|
|
|
|
2018-04-20 00:19:21 +08:00
|
|
|
<hr />
|
2018-04-19 03:30:41 +08:00
|
|
|
|
2018-04-20 00:19:21 +08:00
|
|
|
<p class="last-dashboard-update">
|
|
|
|
{{i18n "admin.dashboard.last_updated"}} {{updatedTimestamp}}
|
|
|
|
</p>
|
2018-04-19 03:30:41 +08:00
|
|
|
|
2018-04-20 00:19:21 +08:00
|
|
|
<a rel="noopener" target="_blank" href="https://meta.discourse.org/t/discourse-2-0-0-beta6-release-notes/85241" class="btn">
|
|
|
|
{{i18n "admin.dashboard.whats_new_in_discourse"}}
|
|
|
|
</a>
|
|
|
|
</div>
|
2018-05-03 21:41:41 +08:00
|
|
|
{{/conditional-loading-section}}
|
2018-04-20 00:19:21 +08:00
|
|
|
</div>
|
2018-04-16 16:42:06 +08:00
|
|
|
|
2018-04-20 00:19:21 +08:00
|
|
|
<div class="section-column">
|
|
|
|
{{dashboard-table-trending-search
|
|
|
|
dataSourceName="trending_search"
|
|
|
|
startDate=startDate
|
|
|
|
endDate=endDate}}
|
2018-04-16 16:42:06 +08:00
|
|
|
</div>
|
2018-04-20 00:19:21 +08:00
|
|
|
</div>
|