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

24 lines
544 B
JavaScript
Raw Normal View History

/**
Handles routes related to users in the admin section.
@class AdminUserRoute
@extends Discourse.Route
@namespace Discourse
@module Discourse
**/
Discourse.AdminUserRoute = Discourse.Route.extend({
serialize: function(params) {
return { username: Em.get(params, 'username').toLowerCase() };
},
model: function(params) {
return Discourse.AdminUser.find(Em.get(params, 'username').toLowerCase());
},
renderTemplate: function() {
this.render('admin/templates/user', {into: 'admin/templates/admin'});
2013-05-14 12:49:15 -04:00
}
});