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