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.
30 lines
832 B
Plaintext
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>
|