@@ -49,7 +24,7 @@ function openid_signin(provider)
<%= image_tag "openid-16x16.gif", :alt => t('user.login.openid_logo_alt') %>
<%= t 'user.login.openid' %>
-
<%= text_field('user', 'openid_url',{:size => 28, :maxlength => 255, :tabindex => 3}) %> |
+
<%= text_field('user', 'openid_url',{:size => 28, :maxlength => 255, :tabindex => 3, :class => "openid_url"}) %> |
|
@@ -60,24 +35,16 @@ function openid_signin(provider)
-
- <%= image_tag "openid_logo.png", :alt => t('user.login.openid_providers.openid.title') %>
-
-
- <%= image_tag "yahoo.gif", :alt => t('user.login.openid_providers.yahoo.alt') %>
-
-
- <%= image_tag "google.gif", :alt => t('user.login.openid_providers.google.alt') %>
-
-
- <%= image_tag "myopenid.png", :alt => t('user.login.openid_providers.myopenid.alt') %>
-
-
- <%= image_tag "wordpress.png", :alt => t('user.login.openid_providers.wordpress.alt') %>
-
-
- <%= image_tag "myspace.png", :alt => t('user.login.openid_providers.myspace.alt') %>
-
+ <%=
+ link_to_function(image_tag("openid_logo.png", :alt => t("user.login.openid_providers.openid.title")), nil, :title => t("user.login.openid_providers.openid.title")) do |page|
+ page[:login_form][:user_openid_url][:value] = "http://"
+ end
+ %>
+ <%= openid_button "yahoo", "yahoo.com" %>
+ <%= openid_button "google", "gmail.com" %>
+ <%= openid_button "myopenid", "myopenid.com" %>
+ <%= openid_button "wordpress", "wordpress.com" %>
+ <%= openid_button "myspace", "myspace.com" %>