X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/3d7eb387a7c3573f1a1d17df00adcaa1fb9b9fa5..c0bfc11d0320be65e57d12b35a50cc7001f10a9b:/app/views/user/view.html.erb diff --git a/app/views/user/view.html.erb b/app/views/user/view.html.erb index 699ff3caf..fc7b59929 100644 --- a/app/views/user/view.html.erb +++ b/app/views/user/view.html.erb @@ -75,8 +75,10 @@
  • <% 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 %>
  • @@ -152,7 +154,7 @@

    -
    <%= @this_user.description.to_html %>
    +
    <%= @this_user.description.to_html %>