mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 02:30:57 +08:00
18 lines
416 B
JavaScript
18 lines
416 B
JavaScript
/**
|
|
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);
|
|
},
|
|
|
|
renderTemplate: function() {
|
|
this.render('admin/templates/user', {into: 'admin/templates/admin'});
|
|
}
|
|
});
|