2013-02-22 15:41:12 -05:00
|
|
|
/**
|
|
|
|
Handles routes related to viewing active flags.
|
2013-02-20 13:15:50 -05:00
|
|
|
|
2013-05-20 15:27:58 -04:00
|
|
|
@class AdminFlagsActiveRoute
|
2013-02-22 15:41:12 -05:00
|
|
|
@extends Discourse.Route
|
|
|
|
@namespace Discourse
|
|
|
|
@module Discourse
|
|
|
|
**/
|
|
|
|
Discourse.AdminFlagsActiveRoute = Discourse.Route.extend({
|
2013-02-21 14:09:28 -05:00
|
|
|
|
2013-05-20 15:27:58 -04:00
|
|
|
setupController: function() {
|
2013-02-22 15:41:12 -05:00
|
|
|
var adminFlagsController = this.controllerFor('adminFlags');
|
2013-05-20 15:27:58 -04:00
|
|
|
adminFlagsController.set('content', Discourse.FlaggedPost.findAll('active'));
|
2013-02-22 15:41:12 -05:00
|
|
|
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
|
|
|
|