views: add html ids for main menu and subnav menu.

Also refactor secondary links to put the <menu> element in the default
layout instead of in each _secondary_links partial.
This commit is contained in:
evazion
2019-09-17 00:28:41 -05:00
parent c85bbbf8c2
commit a5ef86bbe8
28 changed files with 277 additions and 340 deletions

View File

@@ -101,7 +101,7 @@
<%= render "news_updates/listing" %>
<header id="top">
<h1><%= link_to Danbooru.config.app_name, "/" %></h1>
<h1 id="app-name-header"><%= link_to Danbooru.config.app_name, "/" %></h1>
<div id="maintoggle">
<a href="#"><i id="maintoggle-on" class="fas fa-bars"></i></a>
@@ -110,7 +110,11 @@
<nav id="nav">
<%= render "layouts/main_links" %>
<%= yield :secondary_links %>
<% if content_for(:secondary_links).present? %>
<menu id="subnav-menu">
<%= yield :secondary_links %>
</menu>
<% end %>
</nav>
</header>