mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-21 21:40:48 +02:00
13 lines
471 B
Ruby
13 lines
471 B
Ruby
module UsersHelper
|
|
def remote_delete_user(user)
|
|
return link_to(
|
|
image_tag("blank.png", :title => t('users.destroy_user'), :class => "delete_item"),
|
|
url_for(:controller => 'users', :action => 'destroy', :id => user.id), {
|
|
:id => "delete_user_#{user.id}",
|
|
:class => "delete_user_button",
|
|
:title => t('users.destroy_user'),
|
|
:x_confirm_message => t('users.destroy_confirmation', :login => user.login)
|
|
}
|
|
)
|
|
end
|
|
end
|