<nav class="navbar navbar-expand-sm navbar-light navstyle">
  <a class="navbar-brand" href="#">Write It</a>
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>

  <div class="collapse navbar-collapse" id="navbarSupportedContent">
    <ul class="navbar-nav ml-auto">
      <% if user_signed_in? %>
      <li class="nav-item">
          <span class="navbar-text">Welcome, <%= current_user.username %>!</span>
      </li>      
      <li class="nav-item">
          <%= link_to("Logout", destroy_user_session_path, method: :delete, class: "nav-link") %>
      </li>      
      <% else %>
      <li class="nav-item">
          <%= link_to("Log In", 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>
</nav>
<nav class="navbar navbar-expand-sm navbar-light navstyle">
  <a class="navbar-brand" href="/">Write It</a>
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>

  <div class="collapse navbar-collapse" id="navbarSupportedContent">
    <ul class="navbar-nav ml-auto">
      <% if user_signed_in? %>
      <li class="nav-item">
          <span class="navbar-text">Welcome, <%= current_user.username %>!</span>
      </li>      
      <li class="nav-item">
          <%= link_to("Logout", destroy_user_session_path, method: :delete, class: "nav-link") %>
      </li>      
      <% else %>
      <li class="nav-item">
          <%= link_to("Log In", 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>
</nav>
Make site title link to index
Make site title link to index
