X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/99bf5743b624bee944a85caa21181ad30dd91875..33a2ccf560dbb4054d260a7ba9b4a572d4668ae9:/app/views/layouts/_flash.html.erb?ds=sidebyside diff --git a/app/views/layouts/_flash.html.erb b/app/views/layouts/_flash.html.erb index 0f39c4a47..d8adbd0fd 100644 --- a/app/views/layouts/_flash.html.erb +++ b/app/views/layouts/_flash.html.erb @@ -1,29 +1,26 @@ <% if flash[:error] %> -
- - " type="image/svg+xml" /> - <%= image_tag("notice.png", :srcset => image_path("notice.svg"), :class => "small_icon", :border => 0) %> - -
<%= flash[:error] %>
+
+
+ <%= notice_svg_tag %> +
+
<%= render_flash(flash[:error]) %>
<% end %> <% if flash[:warning] %> -
- - " type="image/svg+xml"> - <%= image_tag("notice.png", :srcset => image_path("notice.svg"), :class => "small_icon", :border => 0) %> - -
<%= flash[:warning] %>
+
+
+ <%= notice_svg_tag %> +
+
<%= render_flash(flash[:warning]) %>
<% end %> <% if flash[:notice] %> -
- - " type="image/svg+xml"> - <%= image_tag("notice.png", :srcset => image_path("notice.svg"), :class => "small_icon", :border => 0) %> - -
<%= flash[:notice] %>
+
+
+ <%= notice_svg_tag %> +
+
<%= render_flash(flash[:notice]) %>
<% end %>