]> git.openstreetmap.org Git - rails.git/blob - app/views/layouts/_flash.html.erb
Fix erblint errors from the Rails/ContentTag cop
[rails.git] / app / views / layouts / _flash.html.erb
1 <% if flash[:error] %>
2   <div class="flash error row align-items-center">
3     <div class="col-auto">
4       <picture>
5         <source srcset="<%= image_path "notice.svg" %>" type="image/svg+xml" />
6         <%= image_tag("notice.png", :srcset => image_path("notice.svg")) %>
7       </picture>
8     </div>
9     <div class="col"><%= render_flash(flash[:error]) %></div>
10   </div>
11 <% end %>
12
13 <% if flash[:warning] %>
14   <div class="flash warning row align-items-center">
15     <div class="col-auto">
16       <picture>
17         <source srcset="<%= image_path "notice.svg" %>" type="image/svg+xml"></source>
18         <%= image_tag("notice.png", :srcset => image_path("notice.svg")) %>
19       </picture>
20     </div>
21     <div class="col"><%= render_flash(flash[:warning]) %></div>
22   </div>
23 <% end %>
24
25 <% if flash[:notice] %>
26   <div class="flash notice row align-items-center">
27     <div class="col-auto">
28       <picture>
29         <source srcset="<%= image_path "notice.svg" %>" type="image/svg+xml"></source>
30         <%= image_tag("notice.png", :srcset => image_path("notice.svg")) %>
31       </picture>
32     </div>
33     <div class="col"><%= render_flash(flash[:notice]) %></div>
34   </div>
35 <% end %>