From 271f890f06ac94a785f3223d0c44a7fa8b9d74f7 Mon Sep 17 00:00:00 2001 From: guntasgrewal Date: Mon, 3 Mar 2014 21:24:45 -0500 Subject: Log out button --- app/views/layouts/application.html.erb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/views/layouts') diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index b36c0c5..e5032a4 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -14,8 +14,13 @@ <%= link_to('Leaguer', '/', nil) %>
+ <% if signed_in? %> + + Log Out + <% end %> <%= 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 %>
-- cgit v1.2.3-54-g00ecf