]> git.openstreetmap.org Git - rails.git/blob - app/views/layouts/_flash.html.erb
2ba8ee95dae1bda9cadfd6ffb9592460a5bccab8
[rails.git] / app / views / layouts / _flash.html.erb
1 <% if flash[:error] %>
2   <div class="flash error">
3     <picture>
4       <source srcset="<%= image_path "notice.svg" %>" type="image/svg+xml">
5       <%= image_tag("notice.png", :class => "small_icon", :border => 0) %>
6     </picture>
7     <div class="message"><%= flash[:error] %></div>
8   </div>
9 <% end %>
10
11 <% if flash[:warning] %>
12   <div class="flash warning">
13     <picture>
14       <source srcset="<%= image_path "notice.svg" %>" type="image/svg+xml">
15       <%= image_tag("notice.png", :class => "small_icon", :border => 0) %>
16     </picture>
17     <div class="message"><%= flash[:warning] %></div>
18   </div>
19 <% end %>
20
21 <% if flash[:notice] %>
22   <div class="flash notice">
23     <picture>
24       <source srcset="<%= image_path "notice.svg" %>" type="image/svg+xml">
25       <%= image_tag("notice.png", :class => "small_icon", :border => 0) %>
26     </picture>
27     <div class="message"><%= flash[:notice] %></div>
28   </div>
29 <% end %>