Files
nairobi/app/views/layouts/management.html.erb
Javi Martín 86fd14f8f0 Move admin header partial to a component
This way it's easier to refactor it.

Note we're using `with_request_url` in the tests because the component
renders the locale switcher, which needs a URL in order to work. This
doesn't affect whether we're in the management section or not.
2023-01-16 14:22:13 +01:00

30 lines
832 B
Plaintext

<!DOCTYPE html>
<html <%= common_html_attributes %>>
<head>
<%= render "layouts/common_head", default_title: "Management" %>
<%= stylesheet_link_tag "print", media: "print" %>
<%= content_for :head %>
</head>
<body class="admin">
<%= render Layout::AdminHeaderComponent.new(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>