X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3666b674330ec8d14a224932a191d6121c5974e2..f156928100332034b706096fcf1e92d1f0d42e05:/app/views/site/key.html.erb diff --git a/app/views/site/key.html.erb b/app/views/site/key.html.erb index e43d2c29a..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 %> | - <%= [*t(".table.entry.#{entry['name']}")].to_sentence %> + <%= Array(t(".table.entry.#{entry['name']}")).to_sentence %> | - + <% end %> <% end %> <% end %>