%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
<%= csrf_meta_tags %>
<%= yield :head %>
<%= link_to('Leaguer', '/', nil) %>
<%= form_tag("/search", method: "get", :class => "navbar-form navbar-right") do %>
<%= text_field_tag(:query, nil, :placeholder => "Search") %>
<%= submit_tag("Go", {:class => "btn btn-warning"}) %>
<% end %>
<% if signed_in? %>
<%= current_user.user_name.upcase %>
<% end %>
<%= if signed_in? do %>
<%= link_to "Sign out", signout_path, method: "delete" %>
<% end; end %>