Adds main tag on layouts

This commit is contained in:
Alberto Garcia Cabeza
2016-03-14 12:28:32 +01:00
parent 3ec0971b37
commit e181206054
2 changed files with 45 additions and 42 deletions

View File

@@ -17,32 +17,33 @@
<%= render 'layouts/admin_header' %>
<div class="row expanded">
<main>
<div class="small-12 medium-3 column">
<%= side_menu %>
</div>
<div class="small-12 medium-3 column">
<%= side_menu %>
</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">&times;</span>
</button>
<%= notice %>
</div>
<% end %>
<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">&times;</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">&times;</span>
</button>
<%= alert %>
</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">&times;</span>
</button>
<%= alert %>
</div>
<% end %>
<%= yield %>
</div>
<%= yield %>
</div>
</main>
</div>
</body>
</html>

View File

@@ -25,27 +25,29 @@
</div>
<div class="row auth">
<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">&times;</span>
</button>
<%= notice %>
</div>
<% end %>
<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">&times;</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">&times;</span>
</button>
<%= alert %>
</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">&times;</span>
</button>
<%= alert %>
</div>
<% end %>
<%= yield %>
</div>
<%= yield %>
</div>
</main>
</div>
<div class="push"></div>
</div>