This repository has been archived on 2023-03-18. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
osr-discourse-src/app/assets/javascripts/admin/routes/admin_reports_route.js
T

9 lines
252 B
JavaScript

Discourse.AdminReportsRoute = Discourse.Route.extend({
model: function(params) {
return(Discourse.Report.find(params.type));
},
renderTemplate: function() {
this.render('admin/templates/reports', {into: 'admin/templates/admin'});
}
});