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