[openstreetmap/openstreetmap-website] Edit unrevoked block (PR #5104)
Anton Khorev
notifications at github.com
Wed Aug 21 15:33:26 UTC 2024
Continues #5094.
Moderators who didn't create an active block can open its edit page and the form for them will look like this:

They can update the reason and click revoke. They'll be recorded as revokers and the block will be deactivated.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/5104
-- Commit Summary --
* Show edit buttons on active blocks to all moderators
* Let all moderators revoke blocks by editing
* Remove duration controls for blocks that can only be revoked by editing
* Change submit button on block edit page when can only revoke
-- File Changes --
M app/abilities/ability.rb (5)
M app/controllers/user_blocks_controller.rb (8)
M app/views/user_blocks/_block.html.erb (3)
M app/views/user_blocks/edit.html.erb (20)
M app/views/user_blocks/show.html.erb (3)
M config/locales/en.yml (2)
M test/controllers/user_blocks_controller_test.rb (74)
M test/factories/user_blocks.rb (6)
M test/system/user_blocks_test.rb (18)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/5104.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5104.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5104
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5104 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240821/ba00b4be/attachment.htm>
More information about the rails-dev
mailing list