[openstreetmap/openstreetmap-website] History page links (PR #5876)

Anton Khorev notifications at github.com
Wed Apr 2 05:49:35 UTC 2025


Changes *Load more* buttons into links similar to those used for pagination.
Changes their text to *Newer/Older Changesets*, see https://github.com/openstreetmap/openstreetmap-website/pull/5812#issuecomment-2735280265.

Now these links can be copied and opened like any other links.

![image](https://github.com/user-attachments/assets/e942d94e-da02-42cc-8500-0a4d01c35623)

For example, you can middle-click a link to open the next page in a new tab.

![image](https://github.com/user-attachments/assets/d8b3b92e-2a84-4aef-a91b-d35978686c85)

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

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

-- Commit Summary --

  * Use fetch when loading more changesets in history
  * Make 'Load more' button behave as link on history pages
  * Reset sidebar scroll position on map pan in place history
  * Style load more changesets buttons like pagination links
  * Account for slight differences in button and spinner heights
  * Remove custom history loader css
  * Set map hashes on place history pagination links

-- File Changes --

    M app/assets/javascripts/index/history.js (74)
    M app/assets/stylesheets/common.scss (5)
    M app/views/changesets/index.html.erb (20)
    M config/locales/en.yml (3)
    M test/system/history_test.rb (10)

-- Patch Links --

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

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

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


More information about the rails-dev mailing list