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:
@@ -0,0 +1,4 @@
|
||||
Discourse.AdminReportPostsView = Discourse.View.extend({
|
||||
templateName: 'admin/templates/reports/summed_counts_report',
|
||||
tagName: 'tbody'
|
||||
});
|
||||
@@ -0,0 +1,4 @@
|
||||
Discourse.AdminReportSignupsView = Discourse.View.extend({
|
||||
templateName: 'admin/templates/reports/summed_counts_report',
|
||||
tagName: 'tbody'
|
||||
});
|
||||
@@ -0,0 +1,4 @@
|
||||
Discourse.AdminReportTopicsView = Discourse.View.extend({
|
||||
templateName: 'admin/templates/reports/summed_counts_report',
|
||||
tagName: 'tbody'
|
||||
});
|
||||
@@ -0,0 +1,4 @@
|
||||
Discourse.AdminReportTotalUsersView = Discourse.View.extend({
|
||||
templateName: 'admin/templates/reports/per_day_counts_report',
|
||||
tagName: 'tbody'
|
||||
});
|
||||
@@ -0,0 +1,4 @@
|
||||
Discourse.AdminReportVisitsView = Discourse.View.extend({
|
||||
templateName: 'admin/templates/reports/per_day_counts_report',
|
||||
tagName: 'tbody'
|
||||
});
|
||||
@@ -1,9 +0,0 @@
|
||||
/**
|
||||
These views are needed so we can render the same template multiple times on
|
||||
the admin dashboard.
|
||||
**/
|
||||
var opts = { templateName: 'admin/templates/report', tagName: 'tbody' };
|
||||
Discourse.AdminSignupsView = Discourse.View.extend(opts);
|
||||
Discourse.AdminVisitsView = Discourse.View.extend(opts);
|
||||
Discourse.AdminTopicsView = Discourse.View.extend(opts);
|
||||
Discourse.AdminPostsView = Discourse.View.extend(opts);
|
||||
Reference in New Issue
Block a user