[openstreetmap/openstreetmap-website] Write browse element icons as <img> (PR #5385)

Anton Khorev notifications at github.com
Mon Dec 9 08:42:56 UTC 2024


@AntonKhorev commented on this pull request.



>                <%= element_single_current_link "node", wn.node %>
               <% related_ways = wn.node.ways.reject { |w| w.id == wn.way_id } %>
+              <% icon_connector = " " %>

That was the easiest way to stop linters from complaining. Otherwise they tell to use interpolation. But as soon as I use interpolation, html gets escaped.

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

Message ID: <openstreetmap/openstreetmap-website/pull/5385/review/2488118449 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20241209/a701fde0/attachment-0001.htm>


More information about the rails-dev mailing list