[openstreetmap/openstreetmap-website] Add a page to view active blocks (PR #5524)
Anton Khorev
notifications at github.com
Mon Jan 20 04:42:56 UTC 2025
This PR adds `/account/blocks` page that does the following:
- if there are needs_view blocks, redirects to the earliest one of them
- if there are any active blocks, redirects to the earliest one of them
- if there are no active blocks, displays a message that there aren't any blocks, possibly with a link to `/user/:username/blocks` for reviewing past blocks

You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/5524
-- Commit Summary --
* Add empty account blocks page
* Add redirect from accounts block page to needs_view block
* Add redirect from accounts block page to active block
* Display 'no active blocks' on accounts block page
* Display past blocks button on accounts block page
-- File Changes --
M app/abilities/ability.rb (1)
A app/controllers/accounts/blocks_controller.rb (20)
A app/views/accounts/blocks/index.html.erb (11)
M config/locales/en.yml (5)
M config/routes.rb (1)
A test/controllers/accounts/blocks_controller_test.rb (92)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/5524.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5524.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5524
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5524 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250119/ed43193e/attachment.htm>
More information about the rails-dev
mailing list