Commit Graph

10 Commits (e9ddd5a159c821e3fb75ff997f40a4bca35c326c)

Author SHA1 Message Date
Eugen Rochko 3c033c4352
Add moderation warnings ()
* Add moderation warnings

Replace individual routes for disabling, silencing, and suspending
a user, as well as the report update route, with a unified account
action controller that allows you to select an action (none,
disable, silence, suspend) as well as whether it should generate an
e-mail notification with optional custom text. That notification,
with the optional custom text, is saved as a warning.

Additionally, there are warning presets you can configure to save
time when performing the above.

* Use Account#local_username_and_domain
Eugen Rochko 73faadad28
Redesign admin accounts index ()
* Improve overview of accounts in admin UI

- Display suspended status, role, last activity and IP prominently
- Default to showing local accounts
- Default to not showing suspended accounts

* Remove unused strings

* Fix tests

* Allow filtering accounts by IP mask
Eugen Rochko e645ae9561
Change admin accounts default sort to most recent ()
aus-social 1f98eae1cf Lint pass ()
Shuhei Kitagawa 6151308c47 Add missing tests for admin/accounts_controller ()
Yamagishi Kazutoshi d10447c3a8 Use raw status code on have_http_status ()
Akihiko Odaki (@fn_aki@pawoo.net) 0a53ca444a Cover Admin::AccountsController more ()
Matt Jankowski 9566893cc9 More controller specs ()
* Add render_views in more places

* Delegate methods from account to user with allow nil true, so that admin accounts show view renders when missing a user

* Use actual account instances in authorize follow controller spec
Eugen Rochko b14b5e3b44 Improve notification model
Eugen Rochko 356d3874eb Normalize localizations, add stub for admin/accounts