[openstreetmap/openstreetmap-website] Support linking to object versions (PR #4468)
Cj Malone
notifications at github.com
Tue Jan 9 22:27:54 UTC 2024
Hey, this is my first time with Ruby, please be gentle. Also I've not tested this as I don't have a local dev environment set up, but I've looked at the erb docs, and it seems right.
My goal is to able to link to versions, eg `https://www.openstreetmap.org/node/1/history#v1`. I have no strong opinion on the anchor prefix, I've used `v` but it could be `version-` or anything.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/4468
-- Commit Summary --
* Support linking to object versions
-- File Changes --
M app/views/browse/_node.html.erb (2)
M app/views/browse/_relation.html.erb (2)
M app/views/browse/_way.html.erb (2)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/4468.patch
https://github.com/openstreetmap/openstreetmap-website/pull/4468.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4468
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4468 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240109/1382a812/attachment.htm>
More information about the rails-dev
mailing list