- <p class='standard-label'><%= t 'user.login.with openid' %></p>
-
- <ul class='clearfix' id="login_openid_buttons">
- <li><%= link_to image_tag("openid.png", :alt => t("user.login.openid_providers.openid.title")), "#", :id => "openid_open_url", :title => t("user.login.openid_providers.openid.title") %></li>
- <li><%= openid_button "google", "gmail.com" %></li>
- <li><%= openid_button "yahoo", "me.yahoo.com" %></li>
- <li><%= openid_button "myopenid", "myopenid.com" %></li>
- <li><%= openid_button "wordpress", "wordpress.com" %></li>
- <li><%= openid_button "aol", "aol.com" %></li>
+ <p class='standard-label'><%= t '.with external' %></p>
+
+ <ul class='clearfix' id="login_auth_buttons">
+ <li><%= link_to image_tag("openid.png", :alt => t(".auth_providers.openid.title")), "#", :id => "openid_open_url", :title => t(".auth_providers.openid.title") %></li>
+ <% if defined?(GOOGLE_AUTH_ID) -%>
+ <li><%= auth_button "google", "google" %></li>
+ <% end -%>
+ <% if defined?(FACEBOOK_AUTH_ID) -%>
+ <li><%= auth_button "facebook", "facebook" %></li>
+ <% end -%>
+ <% if defined?(WINDOWSLIVE_AUTH_ID) -%>
+ <li><%= auth_button "windowslive", "windowslive" %></li>
+ <% end -%>
+ <% if defined?(GITHUB_AUTH_ID) -%>
+ <li><%= auth_button "github", "github" %></li>
+ <% end -%>
+ <% if defined?(WIKIPEDIA_AUTH_ID) -%>
+ <li><%= auth_button "wikipedia", "wikipedia" %></li>
+ <% end -%>
+ <li><%= auth_button "yahoo", "openid", :openid_url => "yahoo.com" %></li>
+ <li><%= auth_button "wordpress", "openid", :openid_url => "wordpress.com" %></li>
+ <li><%= auth_button "aol", "openid", :openid_url => "aol.com" %></li>