]> cat aescling's git repositories - mastodon.git/commit
Add confirmation step to account suspensions (#8353)
authorEugen Rochko <eugen@zeonfederated.com>
Wed, 22 Aug 2018 09:53:41 +0000 (11:53 +0200)
committerGitHub <noreply@github.com>
Wed, 22 Aug 2018 09:53:41 +0000 (11:53 +0200)
commit2374a00c1062a70e9092d88579e1351e4c8128f9
tree73fbaf89e2421f587c616785d57b09974dda1605
parent28de046b8bca87dab9d316c59a5afa3a0b24c5a6
Add confirmation step to account suspensions (#8353)

* Add confirmation page for suspensions

* Suspension confirmation closes reports, linked from report UI

* Fix tests
12 files changed:
app/controllers/admin/reports_controller.rb
app/controllers/admin/suspensions_controller.rb
app/javascript/styles/mastodon/forms.scss
app/models/account.rb
app/models/form/admin_suspension_confirmation.rb [new file with mode: 0644]
app/views/admin/accounts/show.html.haml
app/views/admin/reports/show.html.haml
app/views/admin/suspensions/new.html.haml [new file with mode: 0644]
config/locales/en.yml
config/routes.rb
spec/controllers/admin/reports_controller_spec.rb
spec/controllers/admin/suspensions_controller_spec.rb