mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
26 lines
1.2 KiB
Plaintext
26 lines
1.2 KiB
Plaintext
<nav class="thredded--navigation -mt-8 mb-8">
|
|
<% if Thredded.standalone_layout? %>
|
|
<%#
|
|
I moved this list into the standalone_layout? check since we moved everything else
|
|
out of it and I didn't want the blank element (with borders) rendered. We can restyle
|
|
this if we ever go for a standalone layout and/or add more content to this again.
|
|
%>
|
|
<ul class="thredded--user-navigation<%= ' thredded--user-navigation-standalone' if Thredded.standalone_layout? %>">
|
|
<%= render 'thredded/shared/nav/standalone_profile' if thredded_signed_in? %>
|
|
<%= render 'thredded/shared/nav/standalone' %>
|
|
</ul>
|
|
<% end %>
|
|
<% if content_for? :thredded_main_navigation %>
|
|
<%= yield :thredded_main_navigation %>
|
|
<% else %>
|
|
<div class="thredded--main-navigation">
|
|
<%# Navigation scoped to the current messageboard if any. %>
|
|
<%# yield :thredded_breadcrumbs %>
|
|
<%= render 'thredded/search/form', messageboard: messageboard_or_nil %>
|
|
<div class="thredded--spacer"></div>
|
|
<ul class="thredded--scoped-navigation">
|
|
<%# render 'thredded/shared/nav/unread_topics', messageboard: messageboard_or_nil %>
|
|
</ul>
|
|
</div>
|
|
<% end %>
|
|
</nav> |