-
<%= t ".email address" %> <%= @user.email %>
- <% unless @user.creation_ip.nil? -%>
-
<%= t ".created from" %> <%= @user.creation_ip %>
+
+ <% if can?(:destroy, User) && @user.may_soft_destroy? %>
+
+ <%= link_to t(".delete_user"), user_path(:display_name => @user.display_name), :method => :delete, :data => { :confirm => t(".confirm") } %>
+
+ <% end %>
+
+
+ <% end %>
+
+ <% if current_user and current_user.administrator? -%>
+
+
+
+ - <%= t ".email address" %>
+ - <%= @user.email %>
+ <% unless @user.creation_ip.nil? -%>
+ - <%= t ".created from" %>
+ - <%= @user.creation_ip %>
+ <% end -%>
+ - <%= t ".status" %>
+ - <%= @user.status.capitalize %>
+ - <%= t ".spam score" %>
+ - <%= @user.spam_score %>
+
+
+
<% end -%>
-
<%= t ".status" %> <%= @user.status.capitalize %>
-
<%= t ".spam score" %> <%= @user.spam_score %>
- <% end -%>
+