X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/600812f6ad23ab7e1cb3ab25c4b09844ba6daa55..a27e6636a6d9b87da48211ae08e68b2cee8ad54c:/app/views/users/show.html.erb
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
index 3b330d294..1332ab6e2 100644
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -111,7 +111,7 @@
<% end %>
- <% if can?(:set_status, User) || can?(:delete, User) %>
+ <% if can?(:set_status, User) || can?(:destroy, User) %>
<% if can? :set_status, User %>
@@ -138,7 +138,7 @@
<% end %>
<% end %>
- <% if can? :delete, User %>
+ <% if can? :destroy, User %>
-
<%= link_to t(".delete_user"), user_path(:display_name => @user.display_name), :method => :delete, :data => { :confirm => t(".confirm") } %>
@@ -195,7 +195,7 @@
:icon => image_path("marker-red.png"),
:description => render(:partial => "popup", :object => current_user, :locals => { :type => "your location" })
} %>
- <%= content_tag "div", "", :id => "map", :class => "content_map", :data => { :user => user_data } %>
+ <%= tag.div "", :id => "map", :class => "content_map", :data => { :user => user_data } %>
<% end %>
<% friends = @user.friends %>