<% if ['edit', 'update'].include?(controller.action_name) %>
<%= link_to I18n.t("actions.revert"), {:controller => :users, :action => :edit, :id => @user.id}, :class => "btn btn-sm btn-default" %> <%= I18n.t("actions.toolbar_disabled_message") %>
<% end %>
<% if @user.id && !@user.is_system_user && @user.username.downcase != current_user.downcase %>
<%= button_delete_action url_for(:controller => :users, :action => :delete, :id => @user.id) %>
<% end %>