Refactor layout flash usage and move to a partial
This commit is contained in:
@@ -23,23 +23,8 @@
|
||||
</div>
|
||||
|
||||
<div class="admin-content small-12 medium-9 column">
|
||||
<% if notice %>
|
||||
<div data-alert class="callout success" data-closable>
|
||||
<button class="close-button" aria-label="<%= t("application.close") %>" type="button" data-close>
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<%= notice %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<% if alert %>
|
||||
<div data-alert class="callout alert" data-closable>
|
||||
<button class="close-button" aria-label="<%= t("application.close") %>" type="button" data-close>
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<%= alert %>
|
||||
</div>
|
||||
<% end %>
|
||||
<%= render 'layouts/flash' %>
|
||||
|
||||
<%= yield %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user