mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 19:08:10 -05:00
23 lines
513 B
JavaScript
23 lines
513 B
JavaScript
/**
|
|
Handles routes related to viewing old flags.
|
|
|
|
@class AdminFlagsOldRoute
|
|
@extends Discourse.Route
|
|
@namespace Discourse
|
|
@module Discourse
|
|
**/
|
|
Discourse.AdminFlagsOldRoute = Discourse.Route.extend({
|
|
|
|
model: function() {
|
|
return Discourse.FlaggedPost.findAll('old');
|
|
},
|
|
|
|
setupController: function(controller, model) {
|
|
var adminFlagsController = this.controllerFor('adminFlags');
|
|
adminFlagsController.set('content', model);
|
|
adminFlagsController.set('query', 'old');
|
|
}
|
|
|
|
});
|
|
|
|
|