Now that we also have the "go back to CONSUL" link, the layouts are so similar that it isn't worth it maintaining both of them separately. With this change, people using small screens also get the "menu" button in the management section, just like they do everywhere else. We're adding the `namespace != "management"` condition so the menu still shows up in the officing namespace.
31 lines
858 B
Plaintext
31 lines
858 B
Plaintext
<!DOCTYPE html>
|
|
<html <%= "dir=rtl" if rtl? %> lang="<%= I18n.locale %>">
|
|
|
|
<head>
|
|
<%= render "layouts/common_head", default_title: "Management" %>
|
|
<%= stylesheet_link_tag "print", media: "print" %>
|
|
<%= content_for :head %>
|
|
</head>
|
|
|
|
<body class="admin">
|
|
<%= render "layouts/admin_header", current_user: manager_logged_in %>
|
|
|
|
<div class="menu-and-content">
|
|
<%= check_box_tag :show_menu, nil, false, role: "switch" %>
|
|
|
|
<nav class="admin-sidebar">
|
|
<%= render "/management/menu" %>
|
|
</nav>
|
|
|
|
<main class="admin-content">
|
|
<%= label_tag :show_menu, t("admin.menu.admin"),
|
|
"aria-hidden": true, class: "button hollow expanded" %>
|
|
|
|
<%= render "management/account_info" %>
|
|
<%= render "layouts/flash" %>
|
|
<%= yield %>
|
|
</main>
|
|
</div>
|
|
</body>
|
|
</html>
|