2018-05-14 11:07:59 +08:00
|
|
|
{{plugin-outlet name="admin-dashboard-top"}}
|
|
|
|
|
|
|
|
<div class="section-top">
|
2018-05-14 20:23:51 +08:00
|
|
|
{{#if showVersionChecks}}
|
|
|
|
<div class="dashboard-left">
|
|
|
|
{{partial 'admin/templates/version-checks'}}
|
|
|
|
</div>
|
|
|
|
<div class="dashboard-right">
|
|
|
|
{{partial 'admin/templates/dashboard-problems'}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2018-05-14 11:07:59 +08:00
|
|
|
<div class='clearfix'></div>
|
|
|
|
</div>
|
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>
|
2018-05-09 16:05:40 +08:00
|
|
|
{{period-chooser period=period action="changePeriod" content=availablePeriods fullDay=true}}
|
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-body">
|
|
|
|
<div class="charts">
|
|
|
|
{{dashboard-mini-chart
|
2018-05-16 02:12:03 +08:00
|
|
|
dataSourceNames="signups"
|
2018-04-20 00:19:21 +08:00
|
|
|
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
|
2018-05-16 02:12:03 +08:00
|
|
|
dataSourceNames="topics,posts"
|
2018-04-20 00:19:21 +08:00
|
|
|
startDate=startDate
|
2018-04-26 20:49:41 +08:00
|
|
|
endDate=endDate}}
|
|
|
|
|
|
|
|
{{dashboard-mini-chart
|
2018-05-16 02:12:03 +08:00
|
|
|
dataSourceNames="dau_by_mau"
|
2018-04-26 20:49:41 +08:00
|
|
|
startDate=startDate
|
|
|
|
endDate=endDate}}
|
2018-05-03 21:41:41 +08:00
|
|
|
|
|
|
|
{{dashboard-mini-chart
|
2018-05-16 02:12:03 +08:00
|
|
|
dataSourceNames="daily_engaged_users"
|
2018-05-03 21:41:41 +08:00
|
|
|
startDate=startDate
|
|
|
|
endDate=endDate}}
|
|
|
|
|
|
|
|
{{dashboard-mini-chart
|
2018-05-16 02:12:03 +08:00
|
|
|
dataSourceNames="new_contributors"
|
2018-05-03 21:41:41 +08:00
|
|
|
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>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{#each reports as |report|}}
|
2018-05-14 22:04:54 +08:00
|
|
|
{{admin-report-counts report=report allTime=false}}
|
2018-05-03 21:41:41 +08:00
|
|
|
{{/each}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{{/conditional-loading-section}}
|
2018-04-26 20:49:41 +08:00
|
|
|
</div>
|
|
|
|
|
2018-05-16 02:12:03 +08:00
|
|
|
{{#dashboard-inline-table dataSourceNames="users_by_trust_level,users_by_type" lastRefreshedAt=lastRefreshedAt as |context|}}
|
2018-05-15 13:08:23 +08:00
|
|
|
<tr>
|
2018-05-16 02:12:03 +08:00
|
|
|
{{#each context.report.data as |data|}}
|
|
|
|
<td>
|
|
|
|
<a href="/admin/users/list/{{data.key}}">
|
|
|
|
{{number data.y}}
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
{{/each}}
|
2018-05-15 13:08:23 +08:00
|
|
|
</tr>
|
2018-05-14 20:23:51 +08:00
|
|
|
{{/dashboard-inline-table}}
|
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">
|
2018-05-16 02:12:03 +08:00
|
|
|
<h3 class="durability-title">
|
|
|
|
<a href="/admin/backups">{{d-icon "archive"}} {{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">
|
2018-05-16 02:12:03 +08:00
|
|
|
<h3 class="durability-title">{{d-icon "upload"}} {{i18n "admin.dashboard.uploads"}}</h3>
|
2018-04-20 00:19:21 +08:00
|
|
|
<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-05-14 11:07:59 +08:00
|
|
|
<p>
|
|
|
|
{{i18n 'admin.dashboard.find_old'}} {{#link-to 'admin.dashboard'}}{{i18n "admin.dashboard.old_link"}}{{/link-to}}
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
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-05-16 05:04:13 +08:00
|
|
|
<a rel="noopener" target="_blank" href="https://meta.discourse.org/tags/release-notes" class="btn">
|
2018-04-20 00:19:21 +08:00
|
|
|
{{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">
|
2018-05-15 13:08:23 +08:00
|
|
|
{{#dashboard-inline-table
|
2018-05-16 02:12:03 +08:00
|
|
|
dataSourceNames="top_referred_topics"
|
2018-05-15 13:08:23 +08:00
|
|
|
lastRefreshedAt=lastRefreshedAt
|
|
|
|
limit=8
|
|
|
|
as |context|}}
|
|
|
|
{{#each context.report.data as |data|}}
|
|
|
|
<tr>
|
|
|
|
<td class='left'>
|
|
|
|
<a href="{{data.topic_url}}">
|
|
|
|
{{data.topic_title}}
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{data.num_clicks}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
{{/dashboard-inline-table}}
|
|
|
|
|
|
|
|
{{#dashboard-inline-table
|
|
|
|
limit=8
|
2018-05-16 02:12:03 +08:00
|
|
|
dataSourceNames="trending_search"
|
2018-05-14 20:23:51 +08:00
|
|
|
isEnabled=logSearchQueriesEnabled
|
|
|
|
disabledLabel="admin.dashboard.reports.trending_search.disabled"
|
2018-05-11 11:30:21 +08:00
|
|
|
startDate=lastWeek
|
2018-05-15 13:08:23 +08:00
|
|
|
endDate=endDate as |context|}}
|
|
|
|
{{#each context.report.data as |data|}}
|
|
|
|
<tr>
|
|
|
|
<td class='left'>
|
|
|
|
{{data.term}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{number data.unique_searches}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{data.ctr}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/each}}
|
2018-05-14 20:23:51 +08:00
|
|
|
{{{i18n "admin.dashboard.reports.trending_search.more"}}}
|
2018-05-15 13:08:23 +08:00
|
|
|
{{/dashboard-inline-table}}
|
|
|
|
|
2018-05-16 02:12:03 +08:00
|
|
|
</div>
|
2018-04-20 00:19:21 +08:00
|
|
|
</div>
|