Commit Graph

15 Commits (587e3a049e045a84df5b0c4161340797e41afd91)

Author SHA1 Message Date
Matt Jankowski 13c3e59601
Use helper method to build batched status edits in `admin/statuses/show` () 2023-11-08 13:04:52 +00:00
Matt Jankowski bbad5b6456
Remove false positive cop detection () 2023-11-07 10:44:15 +00:00
Matt Jankowski c926f5fd67
Fix haml-lint `UnnecessaryStringOutput` for views () 2023-10-25 12:01:00 +00:00
Matt Jankowski e715da6d25
Fix haml-lint Rubocop `Rails/*` cops () 2023-10-03 15:00:40 +02:00
Matt Jankowski 9974163776
Consolidate inclusion of `admin` js pack link () 2023-08-24 09:56:23 +02:00
Claire f94aa70b81
Fix error when displaying post history of a trendable post in the admin interface () 2023-03-03 20:44:02 +01:00
Eugen Rochko f8ca3bb2a1
Add ability to view previous edits of a status in admin UI ()
* Add ability to view previous edits of a status in admin UI

* Change moderator access to posts to be controlled by a separate policy
2022-10-26 13:42:29 +02:00
Eugen Rochko 392b367835
Fix IDN domains not being rendered correctly in a few left-over places () 2022-03-22 10:07:11 +01:00
Eugen Rochko 14f436c457
Add notifications for statuses deleted by moderators () 2022-01-17 09:41:33 +01:00
Eugen Rochko 9b1f2a4b61
Add subresource integrity for JS and CSS assets ()
Fix 
2020-11-06 11:56:31 +01:00
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
2020-04-28 19:39:16 +02:00
ThibG 6f9a7bd02c Add quick links to the admin interface in the WebUI ()
* Allow to show a specific status in the admin interface

* Let the front-end know the current account is a moderator

* Add admin links to status and account menus

If the current logged-in user is an admin, add quick links to the admin
interface in account and toot dropdown menu. Suggestion by @ashkitten

* Use @statuses.first instead of @statuses[0]
2019-01-04 13:10:43 +01:00
Eugen Rochko 6e49907ecf
Improve admin UI for account view () 2018-12-28 03:38:41 +01:00
Eugen Rochko c7d1a2e400
Improve admin UI for accounts ()
* Improve design of account statuses admin UI (consistent with reports)

* Make account moderation notes look consistent with report notes

* i18n-tasks remove-unused

* Fix code style issues

* Fix tests
2018-05-05 23:06:29 +02:00
abcang 4d42a38954 Improve admin page ()
* Improve admin page

* Fix test

* Add spec

* Improve select style
2017-07-18 16:38:22 +02:00