Add app/views/layouts/_header.html.erb
This commit is contained in:
parent
a7fac004e1
commit
a2ce3e7932
1 changed files with 32 additions and 0 deletions
32
app/views/layouts/_header.html.erb
Normal file
32
app/views/layouts/_header.html.erb
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
|
||||||
|
#add this into the file above render search box before the end of ul and nav
|
||||||
|
|
||||||
|
<nav aria-label="<%= t(".nav.label") %>">
|
||||||
|
<ul class="primary navigation actions">
|
||||||
|
<li class="dropdown">
|
||||||
|
<%= link_to t(".nav.fandoms"), menu_fandoms_path %>
|
||||||
|
<%= render "menu/menu_fandoms" %>
|
||||||
|
</li>
|
||||||
|
<li class="dropdown">
|
||||||
|
<%= link_to t(".nav.browse"), menu_browse_path %>
|
||||||
|
<%= render "menu/menu_browse" %>
|
||||||
|
</li>
|
||||||
|
<li class="dropdown">
|
||||||
|
<%= link_to t(".nav.search"), menu_search_path %>
|
||||||
|
<%= render "menu/menu_search" %>
|
||||||
|
</li>
|
||||||
|
<li class="dropdown">
|
||||||
|
<%= link_to t(".nav.about"), menu_about_path %>
|
||||||
|
<%= render "menu/menu_about" %>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
#ADD THIS PART BEGIN
|
||||||
|
<li class="dropdown">
|
||||||
|
<a href="/">Community</a>
|
||||||
|
<%= render "menu/menu_othersites" %>
|
||||||
|
#label has to be a link or it looks fucked up
|
||||||
|
</li>
|
||||||
|
#ADD THIS PART END
|
||||||
|
<li class="search"><%= render "works/search_box" %></li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
Loading…
Reference in a new issue