X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1220a9930e7e3d9662a9a7ba49d320fdbe1a1021..2a6f78747e2013a1e606f9bc08b39f9c392d154a:/app/views/site/key.html.erb diff --git a/app/views/site/key.html.erb b/app/views/site/key.html.erb index 949121d96..60eff9a44 100644 --- a/app/views/site/key.html.erb +++ b/app/views/site/key.html.erb @@ -1,15 +1,19 @@
- <%= image_tag "key/#{name}/#{entry['image']}" %> + <% if entry["width"] && entry["height"] && entry["fill"] %> + <%= image_tag "data:image/svg+xml,#{u("")}" %> + <% else %> + <%= image_tag "key/#{layer_name}/#{entry['image']}" %> + <% end %> | <%= Array(t(".table.entry.#{entry['name']}")).to_sentence %> | -