summaryrefslogtreecommitdiffstats
path: root/app/views/users
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/users')
-rw-r--r--app/views/users/edit.html.erb2
-rw-r--r--app/views/users/index.html.erb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/users/edit.html.erb b/app/views/users/edit.html.erb
index b56f12c27..fa4f38a64 100644
--- a/app/views/users/edit.html.erb
+++ b/app/views/users/edit.html.erb
@@ -1,7 +1,7 @@
<div class="contextual">
<%= link_to l(:label_profile), user_path(@user), :class => 'icon icon-user' %>
<%= change_status_link(@user) %>
-<%= link_to(l(:button_delete), @user, :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del') if User.current != @user %>
+<%= delete_link user_path(@user) if User.current != @user %>
</div>
<h2><%= link_to l(:label_user_plural), users_path %> &#187; <%=h @user.login %></h2>
diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb
index d59617941..a477a5c90 100644
--- a/app/views/users/index.html.erb
+++ b/app/views/users/index.html.erb
@@ -46,7 +46,7 @@
<td class="last_login_on" align="center"><%= format_time(user.last_login_on) unless user.last_login_on.nil? %></td>
<td class="buttons">
<%= change_status_link(user) %>
- <%= link_to(l(:button_delete), user_path(user), :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del') unless User.current == user %>
+ <%= delete_link user_path(user) unless User.current == user %>
</td>
</tr>
<% end -%>