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
parent
36eac8ba
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Affichage de
- app/controllers/admin/report_notes_controller.rb 49 ajouts, 0 suppressionapp/controllers/admin/report_notes_controller.rb
- app/controllers/admin/reports_controller.rb 19 ajouts, 1 suppressionapp/controllers/admin/reports_controller.rb
- app/helpers/admin/action_logs_helper.rb 1 ajout, 1 suppressionapp/helpers/admin/action_logs_helper.rb
- app/models/account.rb 2 ajouts, 0 suppressionapp/models/account.rb
- app/models/report.rb 4 ajouts, 0 suppressionapp/models/report.rb
- app/models/report_note.rb 21 ajouts, 0 suppressionapp/models/report_note.rb
- app/policies/report_note_policy.rb 17 ajouts, 0 suppressionapp/policies/report_note_policy.rb
- app/views/admin/report_notes/_report_note.html.haml 11 ajouts, 0 suppressionapp/views/admin/report_notes/_report_note.html.haml
- app/views/admin/reports/_report.html.haml 5 ajouts, 0 suppressionapp/views/admin/reports/_report.html.haml
- app/views/admin/reports/index.html.haml 1 ajout, 0 suppressionapp/views/admin/reports/index.html.haml
- app/views/admin/reports/show.html.haml 67 ajouts, 17 suppressionsapp/views/admin/reports/show.html.haml
- config/locales/en.yml 20 ajouts, 2 suppressionsconfig/locales/en.yml
- config/routes.rb 2 ajouts, 0 suppressionconfig/routes.rb
- db/migrate/20180402031200_add_assigned_account_id_to_reports.rb 5 ajouts, 0 suppression...rate/20180402031200_add_assigned_account_id_to_reports.rb
- db/migrate/20180402040909_create_report_notes.rb 14 ajouts, 0 suppressiondb/migrate/20180402040909_create_report_notes.rb
- db/schema.rb 15 ajouts, 1 suppressiondb/schema.rb
- spec/controllers/admin/reports_controller_spec.rb 37 ajouts, 3 suppressionsspec/controllers/admin/reports_controller_spec.rb
Chargement en cours
Veuillez vous inscrire ou vous se connecter pour commenter