Refactor layout flash usage and move to a partial
This commit is contained in:
@@ -42,27 +42,7 @@
|
||||
<% end %>
|
||||
<![endif]-->
|
||||
|
||||
<% if notice %>
|
||||
<div id="notice" data-alert class="row" data-closable>
|
||||
<div class="callout success">
|
||||
<button class="close-button" aria-label="<%= t("application.close") %>" type="button" data-close>
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<%= notice %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<% if alert %>
|
||||
<div id="alert" data-alert class="row" data-closable>
|
||||
<div class="callout alert">
|
||||
<button class="close-button" aria-label="<%= t("application.close") %>" type="button" data-close>
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<%= alert %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
<%= render 'layouts/flash' %>
|
||||
|
||||
<%= yield %>
|
||||
<div class="push"></div>
|
||||
|
||||
Reference in New Issue
Block a user