Skip to content

Commit

Permalink
add in mobile-app-nav
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonhundt committed Nov 8, 2023
1 parent 3c6c4cb commit 7e0d890
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion app/views/layouts/_nav.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,31 @@
</div>
</nav>
<% end %>
</div>

<nav class="navbar-nav navbar-expand-md">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarApps" aria-controls="navbarApps" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</nav>

<div class="collapse navbar-collapse d-md-none" id="navbarApps" aria-hidden="true">
<h2 class="visually-hidden">Your Applications</h2>
<ul class="navbar-nav m-2 mb-lg-0">
<li class="nav-item">
<%= link_to t(".feeder"), main_app.root_path, class: "nav-link active" %>
</li>
<% if current_user_app?("metrics") %>
<li class="nav-item">
<%= link_to t(".metrics"), current_user_app("metrics"), class: "nav-link" %>
</li>
<% end %>
<% if current_user_app?("augury") %>
<li class="nav-item">
<%= link_to t(".augury"), current_user_app("augury"), class: "nav-link" %>
</li>
<% end %>
</ul>
</div>

</div>
</div>

0 comments on commit 7e0d890

Please sign in to comment.