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