diff app/views/users/edit.rhtml @ 128:07fa8a8b56a8

Update to Redmine trunk rev 4732
author Chris Cannam
date Wed, 19 Jan 2011 15:04:22 +0000
parents 94944d00e43c
children 350acce374a2
line wrap: on
line diff
--- a/app/views/users/edit.rhtml	Thu Jan 13 14:12:06 2011 +0000
+++ b/app/views/users/edit.rhtml	Wed Jan 19 15:04:22 2011 +0000
@@ -1,6 +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 %>
 </div>
 
 <h2><%= link_to l(:label_user_plural), :controller => 'users', :action => 'index' %> &#187; <%=h @user.login %></h2>