We were using the same code for the button in both the public and admin headers, so we're removing the duplication. Since the menu and the button must go together, and the contents of the menu are different for different layouts, we're passing these contents using a block. Note the ID of the menu was `responsive-menu` in the public section but `responsive_menu` in the admin section. Since we usually use underscores for IDs and dashes for classes, we're keeping the one with the underscore.
11 lines
293 B
Plaintext
11 lines
293 B
Plaintext
<span data-responsive-toggle="responsive_menu" data-hide-for="medium">
|
|
<button type="button" class="menu-button" data-toggle>
|
|
<span class="menu-icon"></span>
|
|
<%= t("application.menu") %>
|
|
</button>
|
|
</span>
|
|
|
|
<div id="responsive_menu" class="responsive-menu">
|
|
<%= content %>
|
|
</div>
|