]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user/view.html.erb
Remove the _osm_username cookie and session validation logic
[rails.git] / app / views / user / view.html.erb
index cf74fc0e0b9fbfaef0484fbe37a3ddce9ee4b1f9..fc7b599292f54fc25254a23950396bf35039f073 100644 (file)
           <li>
             <% if @user and @user.is_friends_with?(@this_user) %>
               <%= link_to t('user.view.remove as friend'), remove_friend_path(:display_name => @this_user.display_name), :method => :post %>
-            <% else %>
+            <% elsif @user %>
               <%= link_to t('user.view.add as friend'), make_friend_path(:display_name => @this_user.display_name), :method => :post %>
+            <% else %>
+              <%= link_to t('user.view.add as friend'), make_friend_path(:display_name => @this_user.display_name) %>
             <% end %>
           </li>