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.
35 lines
1.0 KiB
Plaintext
35 lines
1.0 KiB
Plaintext
<!DOCTYPE html>
|
|
<html <%= common_html_attributes %>>
|
|
<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">
|
|
<% if namespace == "admin" %>
|
|
<%= render Admin::MenuComponent.new %>
|
|
<% elsif namespace == "sdg_management" %>
|
|
<%= render SDGManagement::MenuComponent.new %>
|
|
<% else %>
|
|
<%= render "/#{namespace}/menu" %>
|
|
<% end %>
|
|
</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.module_parent == Officing && session[:booth_id].present? %>
|
|
<%= yield %>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|