summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorAndrewMurrell <amurrel@purdue.edu>2014-03-03 13:53:21 -0500
committerAndrewMurrell <amurrel@purdue.edu>2014-03-03 13:53:21 -0500
commit8c0cd2f7c5d3152c1674cd730d649a787a8eb67c (patch)
tree3afed43c6a9367564f1bde77f19670ee41471b30 /app/views
parentdef21c442c6e4b52b50f852cedd3e8bcaf436f9d (diff)
Made it so 'log out' only appears if you're logged in.
Diffstat (limited to 'app/views')
-rw-r--r--app/views/layouts/application.html.erb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index 92fce3d..071c86b 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -20,7 +20,9 @@
<% end %>
</div>
<li>
- <%= link_to "Sign out", signout_path, method: "delete" %>
+ <%= if signed_in? do %>
+ <%= link_to "Sign out", signout_path, method: "delete" %>
+ <% end; end %>
</li>
</header>
</div>