discourse/app/assets/javascripts/admin/routes/admin_flags_old_route.js.coffee

7 lines
236 B
CoffeeScript
Raw Normal View History

2013-02-05 14:16:51 -05:00
Discourse.AdminFlagsOldRoute = Discourse.Route.extend
model: -> Discourse.FlaggedPost.findAll('old')
setupController: (controller, model) ->
c = @controllerFor('adminFlags')
c.set('content', model)
2013-02-07 10:45:24 -05:00
c.set('query', 'old')