X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9ac70151a8cb66ea9d68f433c832a3fc61e6882b..ade1da1c8bdc3dfc2a08448d6164f6207628a6b2:/app/views/site/key.html.erb diff --git a/app/views/site/key.html.erb b/app/views/site/key.html.erb index 60eff9a44..28e364685 100644 --- a/app/views/site/key.html.erb +++ b/app/views/site/key.html.erb @@ -1,17 +1,17 @@
+ | <% if entry["width"] && entry["height"] && entry["fill"] %> - <%= image_tag "data:image/svg+xml,#{u("")}" %> + <%= solid_svg_tag entry["width"], entry["height"], entry["fill"], :class => "d-block mx-auto" %> <% else %> - <%= image_tag "key/#{layer_name}/#{entry['image']}" %> + <%= image_tag "key/#{layer_name}/#{entry['image']}", :class => "d-block mx-auto" %> <% end %> | -- <%= Array(t(".table.entry.#{entry['name']}")).to_sentence %> + | + <%= entry["name"].map { |feature_name| t ".table.entry.#{feature_name}" }.join(" · ") %> | <% end %> <% end %>