[openstreetmap/openstreetmap-website] Use before/after pagination on users page (PR #4637)

Anton Khorev notifications at github.com
Fri Mar 29 15:32:07 UTC 2024


![image](https://github.com/openstreetmap/openstreetmap-website/assets/4158490/32187d05-bb59-45b0-8e6f-00540837bfd7)

This changes the order of blocks in the table, but:

- The current order (by end date desc) is not very useful, because the beginning of the list is dominated by long-term blocks. You'll have to page through a lot of "Ends in almost 10 years" blocks for throwaway vandalism accounts before you reach "real" blocks for people to pay attention to, those are not 10 years right away.
- There are plans to let the table be reordered, see #4200.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/4637

-- Commit Summary --

  * Use before/after pagination on users page

-- File Changes --

    M app/controllers/user_blocks_controller.rb (27)
    M app/views/user_blocks/_blocks.html.erb (22)
    M config/locales/en.yml (5)
    M test/controllers/user_blocks_controller_test.rb (94)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/4637.patch
https://github.com/openstreetmap/openstreetmap-website/pull/4637.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4637
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4637 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240329/ee980874/attachment.htm>


More information about the rails-dev mailing list