2013-02-22 15:41:12 -05:00
|
|
|
/**
|
|
|
|
Handles routes related to viewing active flags.
|
2013-02-20 13:15:50 -05:00
|
|
|
|
2013-02-22 15:41:12 -05:00
|
|
|
@class AdminFlagsActiveRoute
|
|
|
|
@extends Discourse.Route
|
|
|
|
@namespace Discourse
|
|
|
|
@module Discourse
|
|
|
|
**/
|
|
|
|
Discourse.AdminFlagsActiveRoute = Discourse.Route.extend({
|
2013-02-21 14:09:28 -05:00
|
|
|
|
2013-02-22 15:41:12 -05:00
|
|
|
model: function() {
|
|
|
|
return Discourse.FlaggedPost.findAll('active');
|
|
|
|
},
|
2013-02-21 14:09:28 -05:00
|
|
|
|
2013-02-22 15:41:12 -05:00
|
|
|
setupController: function(controller, model) {
|
|
|
|
var adminFlagsController = this.controllerFor('adminFlags');
|
|
|
|
adminFlagsController.set('content', model);
|
|
|
|
adminFlagsController.set('query', 'active');
|
|
|
|
}
|
2013-02-21 14:09:28 -05:00
|
|
|
|
2013-02-22 15:41:12 -05:00
|
|
|
});
|
2013-02-21 14:09:28 -05:00
|
|
|
|
2013-02-20 13:15:50 -05:00
|
|
|
|