]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/_header.html.erb
Ignore bounds on elements with geometry
[rails.git] / app / views / layouts / _header.html.erb
index 09a75d891899bf5aeacee459cda1d603efbd8f5c..116cf227d9ad9b382e8a29265a7bdae4d05844bf 100644 (file)
@@ -1,7 +1,10 @@
 <header class="closed">
   <h1>
     <a href="<%= root_path %>" class="geolink">
-      <%= image_tag "osm_logo.png", :alt => t('layouts.logo.alt_text'), :class => 'logo' %>
+      <picture>
+        <source srcset="<%= image_path "osm_logo.svg" %>" type="image/svg+xml"></source>
+        <%= image_tag "osm_logo.png", :srcset => image_path("osm_logo.svg"), :alt => t('layouts.logo.alt_text'), :class => 'logo' %>
+      </picture>
       <%= t 'layouts.project_name.h1' %>
     </a>
   </h1>