@hlfan commented on this pull request.
> @@ -1,4 +1,11 @@
<tr>
- <th class="py-1 border-secondary-subtle table-secondary fw-normal"
dir="auto"><%= format_key(tag[0]) %></th>
- <td class="py-1 border-secondary-subtle border-start" dir="auto"><%=
format_value(tag[0], tag[1]) %></td>
+ <th class="py-1 border-secondary-subtle table-secondary fw-normal"
dir="auto">
+ <%= format_key(tag[0]) %>
+ </th>
+
+ <% lang = tag[0][/^[^:]+:([a-zA-Z-]+)$/, 1] %>
+
+ <td class="py-1 border-secondary-subtle border-start" dir="auto" <%=
"lang=\"#{lang}\"" if lang %>>
You might wanna use tag helpers here instead of interpolating attributes.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6854#pullrequestreview-3903954854
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/pull/6854/review/[email protected]>_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev