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.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
</head>
|
||||
|
||||
<body class="admin">
|
||||
<%= render "layouts/admin_header" %>
|
||||
<%= render Layout::AdminHeaderComponent.new(current_user) %>
|
||||
|
||||
<div class="menu-and-content">
|
||||
<%= check_box_tag :show_menu, nil, false, role: "switch" %>
|
||||
|
||||
Reference in New Issue
Block a user