discourse/app/assets/javascripts/admin/routes/admin_flags_old_route.js.coffee
2013-02-07 16:45:24 +01:00

6 lines
236 B
CoffeeScript

Discourse.AdminFlagsOldRoute = Discourse.Route.extend
model: -> Discourse.FlaggedPost.findAll('old')
setupController: (controller, model) ->
c = @controllerFor('adminFlags')
c.set('content', model)
c.set('query', 'old')