mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Add total users report; restructure dashboard reports js
This commit is contained in:
@@ -54,9 +54,26 @@
|
||||
<th>{{i18n admin.dashboard.reports.last_30_days}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{{ render 'admin_signups' signups }}
|
||||
{{ render 'admin_visits' visits }}
|
||||
{{ render 'admin_topics' topics }}
|
||||
{{ render 'admin_posts' posts }}
|
||||
{{ render 'admin_report_signups' signups }}
|
||||
{{ render 'admin_report_topics' topics }}
|
||||
{{ render 'admin_report_posts' posts }}
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="dashboard-stats">
|
||||
<table class="table table-condensed table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th> </th>
|
||||
<th>{{i18n admin.dashboard.reports.today}}</th>
|
||||
<th>{{i18n admin.dashboard.reports.yesterday}}</th>
|
||||
<th>{{i18n admin.dashboard.reports.7_days_ago}}</th>
|
||||
<th>{{i18n admin.dashboard.reports.30_days_ago}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{{ render 'admin_report_total_users' total_users }}
|
||||
{{ render 'admin_report_visits' visits }}
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
@@ -0,0 +1,9 @@
|
||||
{{#if loaded}}
|
||||
<tr>
|
||||
<td class="title">{{title}}</td>
|
||||
<td class="value">{{valueAtDaysAgo data 0}}</td>
|
||||
<td class="value">{{valueAtDaysAgo data 1}}</td>
|
||||
<td class="value">{{valueAtDaysAgo data 7}}</td>
|
||||
<td class="value">{{valueAtDaysAgo data 30}}</td>
|
||||
</tr>
|
||||
{{/if}}
|
||||
@@ -0,0 +1,9 @@
|
||||
{{#if loaded}}
|
||||
<tr>
|
||||
<td class="title">{{title}}</td>
|
||||
<td class="value">{{valueAtDaysAgo data 0}}</td>
|
||||
<td class="value">{{valueAtDaysAgo data 1}}</td>
|
||||
<td class="value">{{sumLast data 7}}</td>
|
||||
<td class="value">{{sumLast data 30}}</td>
|
||||
</tr>
|
||||
{{/if}}
|
||||
Reference in New Issue
Block a user