discourse/app/assets/javascripts/admin/routes/admin_user_route.js

23 lines
478 B
JavaScript
Raw Normal View History

(function() {
/**
Handles routes related to users in the admin section.
@class AdminUserRoute
@extends Discourse.Route
@namespace Discourse
@module Discourse
**/
Discourse.AdminUserRoute = Discourse.Route.extend({
model: function(params) {
return Discourse.AdminUser.find(params.username);
2013-02-21 15:55:58 -05:00
},
renderTemplate: function() {
this.render('admin/templates/user', {into: 'admin/templates/admin'});
}
2013-02-21 15:55:58 -05:00
});
}).call(this);