<!DOCTYPE html>
<html>
<head>
  <title>CriticL</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
</head>
<body>
  <nav class="navbar navbar-inverse">
    <div class="container-fluid">
      <div class="navbar-header">
        <a class="navbar-brand" href="/movies">criticL</a>
      </div>
      <ul class="nav navbar-nav">
      <% if session[:user_id] %>
        <li class="active"><%= link_to "Log Out", logout_path, method: :delete %></li>
        <li class="active">Hello user!</li>
      <% else %>
        <li class="active"><%= link_to "Log In", login_path%></li>
        <li class="active"><%= link_to "Register", new_user_path%></li>
      <% end %>
      </ul>
    </div>
  </nav>
  <%= yield %>
  <footer class="footer">
    Copyright
  </footer>

</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <title>CriticL</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
</head>
<body>
  <nav class="navbar navbar-inverse">
    <div class="container-fluid">
      <div class="navbar-header">
        <a class="navbar-brand" href="/movies">criticL</a>
      </div>
      <ul class="nav navbar-nav">
      <% if logged_in? %>
        <li class="active"><%= link_to "Log Out", logout_path, method: :delete %></li>
        <li class="active"><%= link_to "#{current_user.username}", current_user %></li>
      <% else %>
        <li class="active"><%= link_to "Log In", login_path%></li>
        <li class="active"><%= link_to "Register", new_user_path%></li>
      <% end %>
      </ul>
    </div>
  </nav>
  <%= yield %>
  <footer class="footer">
    Copyright
  </footer>

</body>
</html>

Add link to user profile in nav bar
Add link to user profile in nav bar
