This commit is contained in:
albert
2013-03-17 21:11:29 -04:00
parent 419aa1cedf
commit 924a19388f
3 changed files with 3 additions and 3 deletions

View File

@@ -5,7 +5,7 @@
<% if CurrentUser.is_anonymous? %>
<li><%= link_to "Sign up", new_user_path %></li>
<% end %>
<% if @user && !CurrentUser.is_anonymous? %>
<% if @user && !@user.new_record? && !CurrentUser.is_anonymous? %>
<li>|</li>
<% if @user.id == CurrentUser.id %>
<li><%= link_to "Settings", edit_user_path(CurrentUser.user) %></li>