mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-25 00:29:30 -05:00
2b5be29d3c
This reverts commit 6a617348e5
.
22 lines
457 B
JavaScript
22 lines
457 B
JavaScript
(function() {
|
|
|
|
/**
|
|
Handles routes related to users.
|
|
|
|
@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'});
|
|
}
|
|
|
|
});
|
|
|
|
}).call(this);
|