summaryrefslogtreecommitdiff
path: root/app/views/layouts
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-03-04 18:48:38 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-03-04 18:48:38 -0500
commitcde35e3461bf49a4b32aefca7b8556e344c8090e (patch)
treede105e188b5e346043795b616939030fa7a7a37e /app/views/layouts
parent28f7378d7d2bc2d79fa52f3dcedb734a543f69be (diff)
login/logout buttons
Diffstat (limited to 'app/views/layouts')
-rw-r--r--app/views/layouts/application.html.erb9
1 files changed, 4 insertions, 5 deletions
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index 9cc30bc..39d73dd 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -19,12 +19,11 @@
<div id="log-buttons">
<% if signed_in? %>
- <%= current_user.user_name.upcase %>
- <%= link_to "Sign out", "/signout", method: "delete", :class => "signout", :role => "button" %>
+ <%= link_to current_user.user_name, current_user, :class => "user" %>
+ <%= render "common/signout" %>
<% else %>
- <%= link_to "Log in", new_session_path, :class => "signin", :role => "button" %>
- <%= link_to "Sign up", new_user_path, :class => "signup", :role => "button"
- %>
+ <%= link_to "Log in", new_session_path, :class => "signin" %>
+ <%= link_to "Sign up", new_user_path, :class => "signup" %>
<% end %>
</div>
</nav></header>