summaryrefslogtreecommitdiff
path: root/app/views/layouts/application.html.erb
blob: b36c0c5884c89533cc207427cf3e3f3ec471efcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html>
<head>
  <title>Leaguer</title>
  <%= stylesheet_link_tag    "application", media: "all", "data-turbolinks-track" => true %>
  <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
  <%= csrf_meta_tags %>
  <%= yield :head %>
</head>
<body>
<div role="navigation" class="navbar navbar-inverse">
<header>
	<div class="navbar-brand no-dec"> 
	<%= link_to('Leaguer', '/', nil) %>
	</div>
	<div>
	<%= 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 %>
	</div>
	<% if signed_in? %>
		<li> <%= current_user.user_name.upcase %> </li>
	<% end %>
     <li>
      <%= if signed_in? do %>
      	<%= link_to "Sign out", signout_path, method: "delete" %>
      <% end; end %>
     </li>
</header>
    </div>

<div class="container"> 
<%= yield %>
</div>
<hr>
<footer id="footer">
<p> Tomer Kimia Andrew Murrell Luke Shumaker Nathaniel Foy Davis Webb Guntas Grewal </p> 
<p> The Leaguer System &#169; <%= Time.now.year %> </p> </footer>
 <%= debug(params) if Rails.env.development? %>
</body>
</html>