]> cat aescling's git repositories - mastodon.git/commit
Admin reports controller improvements (#1714)
authorMatt Jankowski <mjankowski@thoughtbot.com>
Fri, 14 Apr 2017 09:10:28 +0000 (05:10 -0400)
committerEugen <eugen@zeonfederated.com>
Fri, 14 Apr 2017 09:10:28 +0000 (11:10 +0200)
commit8b74aa42176dabf77c3b4d02c80bcc47d9d70e8e
treef39b6c185db42639a6bf43ac8cb4bc621dfc2f20
parenta6807201d2003fc0d544813ba67cfe315d829e06
Admin reports controller improvements (#1714)

* Simplify admin/reports controller filtering for index

* Rename parameter to resolved

* Fix issue where reports view could not access filter_link_to

* Add coverage for admin/reports controller

* DRY up resolution of related reports for target account

* Clean up admin/reports routes

* Add Report#statuses method

* DRY up current account action taken params

* Rubocop styles
app/controllers/admin/reported_statuses_controller.rb [new file with mode: 0644]
app/controllers/admin/reports_controller.rb
app/helpers/admin/accounts_helper.rb
app/models/report.rb
app/views/admin/reports/index.html.haml
app/views/admin/reports/show.html.haml
config/routes.rb
spec/controllers/admin/reported_statuses_controller_spec.rb [new file with mode: 0644]
spec/controllers/admin/reports_controller_spec.rb
spec/fabricators/report_fabricator.rb
spec/models/report_spec.rb