2013-02-22 15:41:12 -05:00
|
|
|
/**
|
|
|
|
Handles routes related to viewing old flags.
|
2013-02-20 13:15:50 -05:00
|
|
|
|
2013-05-20 15:27:58 -04:00
|
|
|
@class AdminFlagsOldRoute
|
2013-02-22 15:41:12 -05:00
|
|
|
@extends Discourse.Route
|
|
|
|
@namespace Discourse
|
|
|
|
@module Discourse
|
|
|
|
**/
|
|
|
|
Discourse.AdminFlagsOldRoute = Discourse.Route.extend({
|
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');
|
2013-05-20 15:27:58 -04:00
|
|
|
adminFlagsController.set('content', Discourse.FlaggedPost.findAll('old'));
|
2013-02-22 15:41:12 -05:00
|
|
|
adminFlagsController.set('query', 'old');
|
|
|
|
}
|
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
|
|
|
|