[openstreetmap/openstreetmap-website] Fix issue #6256: Add info icon with Wiki links to map layers menu (PR #6669)
Swayam
notifications at github.com
Sat Jan 3 13:20:17 UTC 2026
@SinghSwayam commented on this pull request.
> @@ -7,6 +7,20 @@
<span class="badge position-absolute top-0 start-0 rounded-top-0 rounded-start-0 py-1 px-2 bg-body bg-opacity-75 text-body text-wrap text-start fs-6 lh-base">
<%= t "javascripts.map.base.#{layer['nameId']}" %>
</span>
+
+ <% if layer['wiki'] %>
+ <a href="<%= layer['wiki'] %>"
+ target="_blank"
+ rel="noopener"
+ title="<%= t 'layouts.layer_info' %>"
+ class="position-absolute z-3"
+ style="top: 4px; right: 4px; color: #ffffff90; mix-blend-mode: difference; text-decoration: none; line-height: 1;"
+ onclick="event.stopPropagation()">
yes i have checked the link clicking action and it consumes the event
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6669#discussion_r2658920161
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6669/review/3624336423 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260103/1df23075/attachment-0001.htm>
More information about the rails-dev
mailing list