X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/228ab23ce16338e281e609d9355c982cd4085c42..f156928100332034b706096fcf1e92d1f0d42e05:/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 %> | -