From 0baa293699cf6efaea979b342ec877af522213ca Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 28 Aug 2019 16:02:34 +0200 Subject: [PATCH] Make the logo on the error page clickable Also use the same picture/srcset code as on the main header --- app/views/layouts/error.html.erb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 %>
-- 2.43.2