<!DOCTYPE html>
<html>
<head>
  <link href='//fonts.googleapis.com/css?family=Droid+Sans' rel='stylesheet' type='text/css'>
  <link href='//fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>
  <link href='//fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>
  <link href='//fonts.googleapis.com/css?family=Abel' rel='stylesheet' type='text/css'>
  <title>PDFMHDbcOverflow</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
</head>
<div class="wrapper">
    <body>
      <header>
        <h1>DBC Overflow</h1>
        <nav>
          <ul>
            <li>
              <%= button_to 'Login' %>
            </li>
            <li>
              <%= button_to 'Signup' %>
            </li>
            <li>
              <%= form_tag("/search", method: "get") do %>
                <%= text_field_tag(:q) %>
                <%= submit_tag("Search") %>
              <% end %>
            </li>
          </ul>


        </nav>


      </header>
      <%= yield %>
    </body>
  </div>
</html>

<!DOCTYPE html>
<html>
<head>
  <link href='//fonts.googleapis.com/css?family=Droid+Sans' rel='stylesheet' type='text/css'>
  <link href='//fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>
  <link href='//fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>
  <link href='//fonts.googleapis.com/css?family=Abel' rel='stylesheet' type='text/css'>
  <title>PDFMHDbcOverflow</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
</head>
<div class="wrapper">
    <body>
      <header>
        <h1>DBC Overflow</h1>
        <nav>
          <ul>
            <% if logged_in? %>
              <li><%= button_to 'Logout', logout_path, method: :get %></li>
            <% else %>
              <li>
                <%= button_to 'Login', login_path, method: :get %>
              </li>
              <li>
                <%= button_to 'Signup' %>
              </li>
            <% end %>
            <li>
              <%= form_tag("/search", method: "get", id: "search_form") do %>
                <%= text_field_tag(:q) %>
                <%= submit_tag("Search") %>
              <% end %>
            </li>
          </ul>


        </nav>


      </header>
      <%= yield %>
    </body>
  </div>
</html>

Change view for loged in and out status.
Change view for loged in and out status.
