Refactor layout flash usage and move to a partial
This commit is contained in:
@@ -27,23 +27,8 @@
|
||||
<div class="row auth">
|
||||
<main>
|
||||
<div class="small-12 medium-8 large-5 column small-centered panel padding margin-bottom">
|
||||
<% 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 warning" 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>
|
||||
@@ -56,4 +41,4 @@
|
||||
<%= render 'layouts/footer' %>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user