-
- Downloads
Feature: Report improvements (#6967) (#7000)
* Implement Assignment of Reports (#6967) * Change translation of admin.report.comment.label to "Report Comment" for clarity As we'll soon add the ability for reports to have comments on them, this clarification makes sense. * Implement notes for Reports This enables moderators to leave comments about a report whilst they work on it * Fix display of report moderation notes * Allow reports to be reopened / marked as unresolved * Redirect to reports listing upon resolution of report * Implement "resolve with note" functionality * Add inverse relationship for report notes * Remove additional database querying when loading report notes * Fix tests for reports * Fix localisations for report notes / reports
Showing
- app/controllers/admin/report_notes_controller.rb 49 additions, 0 deletionsapp/controllers/admin/report_notes_controller.rb
- app/controllers/admin/reports_controller.rb 19 additions, 1 deletionapp/controllers/admin/reports_controller.rb
- app/helpers/admin/action_logs_helper.rb 1 addition, 1 deletionapp/helpers/admin/action_logs_helper.rb
- app/models/account.rb 2 additions, 0 deletionsapp/models/account.rb
- app/models/report.rb 4 additions, 0 deletionsapp/models/report.rb
- app/models/report_note.rb 21 additions, 0 deletionsapp/models/report_note.rb
- app/policies/report_note_policy.rb 17 additions, 0 deletionsapp/policies/report_note_policy.rb
- app/views/admin/report_notes/_report_note.html.haml 11 additions, 0 deletionsapp/views/admin/report_notes/_report_note.html.haml
- app/views/admin/reports/_report.html.haml 5 additions, 0 deletionsapp/views/admin/reports/_report.html.haml
- app/views/admin/reports/index.html.haml 1 addition, 0 deletionsapp/views/admin/reports/index.html.haml
- app/views/admin/reports/show.html.haml 67 additions, 17 deletionsapp/views/admin/reports/show.html.haml
- config/locales/en.yml 20 additions, 2 deletionsconfig/locales/en.yml
- config/routes.rb 2 additions, 0 deletionsconfig/routes.rb
- db/migrate/20180402031200_add_assigned_account_id_to_reports.rb 5 additions, 0 deletions...rate/20180402031200_add_assigned_account_id_to_reports.rb
- db/migrate/20180402040909_create_report_notes.rb 14 additions, 0 deletionsdb/migrate/20180402040909_create_report_notes.rb
- db/schema.rb 15 additions, 1 deletiondb/schema.rb
- spec/controllers/admin/reports_controller_spec.rb 37 additions, 3 deletionsspec/controllers/admin/reports_controller_spec.rb
Loading
Please register or sign in to comment