diff options
author | guntasgrewal <guntasgrewal@gmail.com> | 2014-03-03 21:24:45 -0500 |
---|---|---|
committer | guntasgrewal <guntasgrewal@gmail.com> | 2014-03-03 21:24:45 -0500 |
commit | 271f890f06ac94a785f3223d0c44a7fa8b9d74f7 (patch) | |
tree | b3628277be3079937743758e1af65bc5103f2a85 /app/views/layouts/application.html.erb | |
parent | b8c14b654255376d79fae55e139a968930be4569 (diff) |
Log out button
Diffstat (limited to 'app/views/layouts/application.html.erb')
-rw-r--r-- | app/views/layouts/application.html.erb | 5 |
1 files changed, 5 insertions, 0 deletions
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) %> </div> <div> + <% if signed_in? %> + <a class="btn btn-warning" href="/signout" role="button"> + Log Out </a> + <% 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 %> </div> |