diff --git a/app/assets/javascripts/admin/models/report.js b/app/assets/javascripts/admin/models/report.js index 5099065c2e2..ed6bc868c21 100644 --- a/app/assets/javascripts/admin/models/report.js +++ b/app/assets/javascripts/admin/models/report.js @@ -1,4 +1,8 @@ -Discourse.Report = Discourse.Model.extend({}); +Discourse.Report = Discourse.Model.extend({ + reportUrl: function() { + return("/admin/reports/" + this.get('type')); + }.property('type') +}); Discourse.Report.reopenClass({ find: function(type) { diff --git a/app/assets/javascripts/admin/templates/reports/per_day_counts_report.js.handlebars b/app/assets/javascripts/admin/templates/reports/per_day_counts_report.js.handlebars index db698fe6490..774ef4389ff 100644 --- a/app/assets/javascripts/admin/templates/reports/per_day_counts_report.js.handlebars +++ b/app/assets/javascripts/admin/templates/reports/per_day_counts_report.js.handlebars @@ -1,5 +1,5 @@