We forgot to do so in commit d827768c0. In order to avoid the same
mistake in the future, we're extracting a method to get these
attributes. We're also adding tests, since we didn't have any tests to
check that the `dir` attribute was properly set.
30 lines
836 B
Plaintext
30 lines
836 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 "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>
|