From: Andy Allan Date: Wed, 28 Aug 2019 14:02:34 +0000 (+0200) Subject: Make the logo on the error page clickable X-Git-Tag: live~2475^2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/0baa293699cf6efaea979b342ec877af522213ca Make the logo on the error page clickable Also use the same picture/srcset code as on the main header --- diff --git a/app/views/layouts/error.html.erb b/app/views/layouts/error.html.erb index f429feb59..9b5f4f34b 100644 --- a/app/views/layouts/error.html.erb +++ b/app/views/layouts/error.html.erb @@ -6,7 +6,12 @@ <%= stylesheet_link_tag "errors", :media => "screen" %> - <%= image_tag "osm_logo.png", :class => "logo" %> + + + " type="image/svg+xml"> + <%= image_tag "osm_logo.png", :srcset => image_path("osm_logo.svg"), :alt => t("layouts.logo.alt_text"), :class => "logo" %> + +
<%= yield %>