X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0ea9f92be50a8763331a81d3c32a5f5a157265c6..d38e476fa66a69285639ca4d6f94f7aa676e1d88:/app/helpers/user_helper.rb diff --git a/app/helpers/user_helper.rb b/app/helpers/user_helper.rb index 8686d5a03..acaecff48 100644 --- a/app/helpers/user_helper.rb +++ b/app/helpers/user_helper.rb @@ -4,13 +4,11 @@ module UserHelper end def openid_button(name, url) - link_to_function( + link_to( image_tag("#{name}.png", :alt => t("user.login.openid_providers.#{name}.alt")), - nil, + "#", + :class => "openid_button", :data => { :url => url }, :title => t("user.login.openid_providers.#{name}.title") - ) do |page| - page[:login_form][:openid_url][:value] = url - page[:login_form].submit() - end + ) end end