2013-06-04 04:12:24 +08:00
|
|
|
/**
|
|
|
|
Handles routes for admin groups
|
|
|
|
|
|
|
|
@class AdminGroupsRoute
|
|
|
|
@extends Discourse.Route
|
|
|
|
@namespace Discourse
|
|
|
|
@module Discourse
|
|
|
|
**/
|
2013-04-17 15:08:21 +08:00
|
|
|
Discourse.AdminGroupsRoute = Discourse.Route.extend({
|
2013-06-06 00:40:06 +08:00
|
|
|
|
|
|
|
model: function() {
|
|
|
|
return Discourse.Group.findAll();
|
2014-02-07 02:40:04 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
setupController: function(controller, model) {
|
|
|
|
controller.set('model', model);
|
|
|
|
controller.set('aliasLevelOptions', Discourse.Group.aliasLevelOptions());
|
2013-04-17 15:08:21 +08:00
|
|
|
}
|
2013-06-06 00:40:06 +08:00
|
|
|
|
2013-04-17 15:08:21 +08:00
|
|
|
});
|
|
|
|
|