2013-02-20 13:15:50 -05:00
|
|
|
(function() {
|
|
|
|
|
2013-02-21 14:09:28 -05:00
|
|
|
/**
|
2013-02-21 16:17:56 -05:00
|
|
|
Handles routes related to users in the admin section.
|
2013-02-21 14:09:28 -05:00
|
|
|
|
|
|
|
@class AdminUserRoute
|
|
|
|
@extends Discourse.Route
|
|
|
|
@namespace Discourse
|
|
|
|
@module Discourse
|
|
|
|
**/
|
2013-02-20 13:15:50 -05:00
|
|
|
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-20 13:15:50 -05:00
|
|
|
}
|
2013-02-21 15:55:58 -05:00
|
|
|
|
2013-02-20 13:15:50 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
}).call(this);
|