]> git.openstreetmap.org Git - rails.git/blob - app/views/layouts/_flash.html.erb
Be more consistent with 'my' vs 'your' for objects that belong to
[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"></source>
5       <%= image_tag("notice.png", :srcset => image_path("notice.svg"), :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"></source>
15       <%= image_tag("notice.png", :srcset => image_path("notice.svg"), :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"></source>
25       <%= image_tag("notice.png", :srcset => image_path("notice.svg"), :class => "small_icon", :border => 0) %>
26     </picture>
27     <div class="message"><%= flash[:notice] %></div>
28   </div>
29 <% end %>