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

7 lines
245 B
CoffeeScript
Raw Normal View History

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