Commit Graph

22 Commits (a783bdf4adee3444e9cd32c2eaa0712214ba1230)

Author SHA1 Message Date
Mélanie Chauvel 08cf81f8c1
Improve appearence consistency of settings pages ()
* Fix header button changing header size in settings pages

* Make form buttons look more like a part of the form in settings pages

- Put buttons closer, using same distance as between inputs
- Make buton font size a bit smaller to blend a bit more
- Add the class button to button tags for consisent styling
Mélanie Chauvel 77619b1654
Put “Add new domain block” button on /admin/instances in header ()
ThibG b8ba977497
Fix admin-facing uses of inline CSS ()
* Move .back-button inline styles to CSS file

All occurrences of the back-button CSS class used the same inline
CSS rules, so moved them over to the CSS file

* Fix “Add new domain block” button using inline CSS

* Replace common pattern of inline-styled button boxes by a CSS class

In particular, switching from `float: left/right` to a flexbox with
`justify-content: space-between`. This implied changing the order of
a few HTML tags and adding an empty `div` in one case.

Also removed a `margin-bottom` rule that wasn't needed due to the
margins of surrounding elements.

* Move account admin view inline CSS to CSS file
Eugen Rochko 6feafb8802
Various fixes and improvements ()
* Fix unused role routes being generated

* Remove unused JavaScript code

* Refactor filters code to be DRYer

* Fix `.count == 0` comparisons to `.empty?` in views

* Fix filters in views
ThibG 4195039420 Link to reports targetting instance in admin view ()
ThibG c1e238a77b Fix admin interface showing superfluous reject media/reports on suspended blocks ()
* Fix admin interface showing superfluous reject media/reports on suspended domains

* Fix reject media/reports checkboxes being visible when editing domain block of suspend severity
ThibG bced70469a Add domain block notes ()
* Add database columns for adding notes to domain blocks/restrctions

* Add admin UI to set private and public comments when blocking a domain

* Add text for private and public comments on domain blocks

* Show domain block comments in admin UI

* Add comments to the domain block undo page

* Make UnblockDomainService more robust regarding upgraded domain blocks

* Allow editing domain blocks

* Rename button from “undo domain block” to “view domain block” in account admin UI

* Change test to unsilence silenced users from upgraded blocks
Eugen Rochko 24552b5160
Add whitelist mode ()
Eugen Rochko 1b052c7b2d
Remove expensive counters from federation page in admin UI ()
Eugen Rochko 94e5e834f2
Improve performance of list of blocked domains by caching counts ()
ThibG 359d26a053 Fix “reset” button of instance filter switching to custom emoji admin panel ()
ThibG 6840a77711 Add domain search/filter to the "Federation" (/admin/instances) page ()
Eugen Rochko a269ffdfa5
Change "federation" admin UI link to point to "limited" domains ()
Eugen Rochko 1c6588accc
Redesign admin instances area ()
Eugen Rochko fd5285658f
Add option to block reports from domain ()
nullkal da77f65c46 Add instance search feature ()
nullkal 9e2ff3ef71 Make instance names in into links to user list in the instance ()
Lynx Kotoura 3c45d3963a Scrollable tables in settings pages ()
* Scrollable tables in settings pages

* Add space before curly brace
Eugen Rochko 4b911fea03 Add button to re-subscribe to all accounts from a domain ()
Matt Jankowski a132332b86 Add Instance class to list admin records ()
Matt Jankowski b5eec34230 Add admin area view partials for each record type ()
Matt Jankowski 55e1503522 Instances list in admin ()
* Add admin/instances index action

* Add link to instances admin page

* View lists instances

* Instances, grouped by domain, ordered by count

* Use Account.remote scope

* Extract method: Account.by_domain_accounts