2024-01-17 02:36:03 -06:00
|
|
|
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
2024-01-19 18:25:59 -06:00
|
|
|
<div class="container-fluid">
|
|
|
|
<%= link_to 'Home', root_path, class: 'navbar-brand' %>
|
|
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
</button>
|
|
|
|
<div class="collapse navbar-collapse" id="navbarNav">
|
|
|
|
<ul class="navbar-nav ms-auto mb-2 mb-lg-0">
|
2024-01-22 21:51:49 -06:00
|
|
|
<!-- Add links to model index pages here -->
|
|
|
|
<li class="nav-item">
|
|
|
|
<%= link_to 'Participants', participants_path, class: 'nav-link' %>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<%= link_to 'Employers', employers_path, class: 'nav-link' %>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<%= link_to 'Workers', workers_path, class: 'nav-link' %>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<%= link_to 'Vendors', vendors_path, class: 'nav-link' %>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<!-- Authentication links -->
|
2024-01-19 18:25:59 -06:00
|
|
|
<% if user_signed_in? %>
|
|
|
|
<li class="nav-item">
|
|
|
|
<%= link_to 'Sign Out', destroy_user_session_path, method: :delete, class: 'nav-link' %>
|
|
|
|
</li>
|
|
|
|
<% else %>
|
|
|
|
<li class="nav-item">
|
|
|
|
<%= link_to 'Sign In', new_user_session_path, class: 'nav-link' %>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2024-01-17 02:36:03 -06:00
|
|
|
</div>
|
2024-01-19 18:25:59 -06:00
|
|
|
</nav>
|