Files
nairobi/app/views/layouts/admin.html.erb
Javi Martín c362e1190f Simplify main admin header margin rules
Instead of having a header with a bottom margin followed by an element
with a negative margin, it makes more sense to have no margin on either
element.
2020-09-21 15:15:52 +02:00

30 lines
824 B
Plaintext

<!DOCTYPE html>
<html lang="<%= I18n.locale %>">
<head>
<%= render "layouts/common_head", default_title: "Admin" %>
<%= content_for :head %>
</head>
<body class="admin">
<%= render "layouts/admin_header" %>
<div class="menu-and-content">
<%= check_box_tag :show_menu, nil, false, role: "switch" %>
<nav id="side_menu" class="admin-sidebar">
<%= render "/#{namespace}/menu" %>
</nav>
<div class="admin-content">
<%= label_tag :show_menu, t("admin.menu.admin"),
"aria-hidden": true, class: "button hollow expanded" %>
<%= render "layouts/flash" %>
<%= render "layouts/officing_booth" if controller.class.parent == Officing && session[:booth_id].present? %>
<%= yield %>
</div>
</div>
</body>
</html>