[openstreetmap/openstreetmap-website] Add user preferences support to iD editor via server-side rendering (PR #6199)
Martin Raifer
notifications at github.com
Wed Jul 16 06:04:54 UTC 2025
@tyrasd commented on this pull request.
> @@ -15,7 +15,15 @@
data[:token] = token.token
end
data[:locale] = ID::LOCALES.preferred(preferred_languages).to_s
- data[:asset_map] = assets("iD").to_json %>
+ data[:asset_map] = assets("iD").to_json
+
+ # Include user preferences for iD editor
+ if current_user
it's probably not required to check for `current_user` as this page requires to be logged in to load, and the variable is already used on line 14.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6199#pullrequestreview-3023267480
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6199/review/3023267480 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250715/8dc5e9fd/attachment.htm>
More information about the rails-dev
mailing list