]> cat aescling's git repositories - mastodon.git/commit
Admin reports with accounts (#2092)
authorMatt Jankowski <mjankowski@thoughtbot.com>
Tue, 18 Apr 2017 17:36:18 +0000 (13:36 -0400)
committerEugen <eugen@zeonfederated.com>
Tue, 18 Apr 2017 17:36:18 +0000 (19:36 +0200)
commit66d8f99a30f9e6062f1bff37d5115beddce9b55d
tree5f7c752043054bc86fb57faa89332660688044bc
parentf23281e31ead38a1cabbb73f0dbb8b36cb38cadb
Admin reports with accounts (#2092)

* Add a ReportFilter class

* Add reports and targeted_reports relationships to Account

* Use ReportFilter from admin/reports controller

* Link to admin/reports filtered views from admin account show view

* Add indexes to reports.account_id and reports.target_account_id
app/controllers/admin/reports_controller.rb
app/helpers/admin/filter_helper.rb
app/models/account.rb
app/models/report_filter.rb [new file with mode: 0644]
app/views/admin/accounts/show.html.haml
config/locales/en.yml
db/migrate/20170418160728_add_indexes_to_reports_for_accounts.rb [new file with mode: 0644]
db/schema.rb
spec/models/report_filter_spec.rb [new file with mode: 0644]