[openstreetmap/openstreetmap-website] Add oldest/newest links to shared pagination (PR #4710)

Anton Khorev notifications at github.com
Tue Apr 16 22:52:05 UTC 2024


#4707 was intended for this PR and possibly for putting something between </> buttons. We already do it on changeset history pages.

![image](https://github.com/openstreetmap/openstreetmap-website/assets/4158490/3186013c-afb9-49bb-973f-23c901d3811d)
![image](https://github.com/openstreetmap/openstreetmap-website/assets/4158490/2955d782-3a95-4397-bf1a-9a34e4114716)
![image](https://github.com/openstreetmap/openstreetmap-website/assets/4158490/00f7cc11-6ace-4e87-aadc-451caeaddb36)

You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Pass translation scope instead of keys to shared pagination
  * Introduce pagination item helper
  * Add oldest/newest links to shared pagination
  * Show only pagination icons below medium/small screen sizes

-- File Changes --

    A app/helpers/pagination_helper.rb (13)
    M app/views/diary_entries/comments.html.erb (3)
    M app/views/diary_entries/index.html.erb (3)
    M app/views/shared/_pagination.html.erb (40)
    M app/views/traces/index.html.erb (6)
    M app/views/user_blocks/_blocks.html.erb (3)
    M app/views/users/index.html.erb (6)
    M config/locales/en.yml (28)

-- Patch Links --

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

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

Message ID: <openstreetmap/openstreetmap-website/pull/4710 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240416/9540e940/attachment-0001.htm>


More information about the rails-dev mailing list