Sha256: b9c28c3cdb2adeb2cc167e595de23462ee383424328d67b514890359d45ce248

Contents?: true

Size: 932 Bytes

Versions: 10

Compression:

Stored size: 932 Bytes

Contents

<nav class="navbar navbar-expand-lg navbar-light bg-light">
  <div class="container">
    <%= link_to "Testapp", 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">
        <% if user_signed_in? %>
          <li class="nav-item"><%= button_to "Log out", destroy_user_session_path, method: :delete, class: "nav-link" %></li>
        <% else %>
          <li class="nav-item"><%= link_to "Login", new_user_session_path, class: "nav-link" %></li>
          <li class="nav-item"><%= link_to "Sign Up", new_user_registration_path, class: "nav-link" %></li>
        <% end%>
      </ul>
    </div>
  </div>
</nav>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rails_app-0.9.0 lib/rails_app/template/app_bootstrap/views/shared/_navbar.html.erb
rails_app-0.8.1 lib/rails_app/template/app_bootstrap/views/shared/_navbar.html.erb
rails_app-0.8.0 lib/rails_app/template/app_bootstrap/views/shared/_navbar.html.erb
rails_app-0.7.0 lib/rails_app/template/app_bootstrap/views/shared/_navbar.html.erb
rails_app-0.6.0 lib/rails_app/template/app_bootstrap/views/shared/_navbar.html.erb
rails_app-0.5.0 lib/rails_app/template/app_bootstrap/views/shared/_navbar.html.erb
rails_app-0.4.0 lib/rails_app/template/app_bootstrap/views/shared/_navbar.html.erb
rails_app-0.3.0 lib/rails_app/template/app_bootstrap/views/shared/_navbar.html.erb
rails_app-0.2.0 lib/rails_app/template/app_bootstrap/views/shared/_navbar.html.erb
rails_app-0.1.0 lib/rails_app/template/app_bootstrap/views/shared/_navbar.html.erb