]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/error.html.erb
Update leaflet to 1.6.0
[rails.git] / app / views / layouts / error.html.erb
index f429feb5963b083201f242508ed97b3663a17b56..2b769958e5018d536aff6c5c195f952e211e6d7e 100644 (file)
@@ -6,7 +6,12 @@
     <%= stylesheet_link_tag "errors", :media => "screen" %>
   </head>
   <body>
-    <%= image_tag "osm_logo.png", :class => "logo" %>
+    <a href="<%= root_path %>">
+      <picture>
+        <source srcset="<%= image_path "osm_logo.svg" %>" type="image/svg+xml" />
+        <%= image_tag "osm_logo.png", :srcset => image_path("osm_logo.svg"), :alt => t("layouts.logo.alt_text"), :class => "logo" %>
+      </picture>
+    </a>
     <div class="details">
       <%= yield %>
     </div>