]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user/login.html.erb
Adds first try to add key to cyclemap
[rails.git] / app / views / user / login.html.erb
index 0f193e896da5256918a499e1a99da8f37eb64ee0..ded03318f6e25842993f0df350ac270c82233492 100644 (file)
 
       <fieldset>
         <div class="form-row">
-          <label class="standard-label">
+          <label for="username" class="standard-label">
             <%= t 'user.login.email or username' %>
           </label>
           <%= text_field_tag "username", params[:username], :tabindex => 1 %>
         </div>
         <div class="form-row">
-          <label class="standard-label">
+          <label for="password" class="standard-label">
             <%= t 'user.login.password' %>
           </label>
           <%= password_field_tag "password", "", :tabindex => 2 %>
 
         <ul class='clearfix' id="login_auth_buttons">
           <li><%= link_to image_tag("openid.png", :alt => t("user.login.auth_providers.openid.title")), "#", :id => "openid_open_url", :title => t("user.login.auth_providers.openid.title") %></li>
-          <li><%= auth_button "google", "openid", :openid_url => "https://www.google.com/accounts/o8/id" %></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 -%>
           <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>
         </ul>
 
         <div id='login_openid_url' class='form-row'>
-          <label class="standard-label"><%= raw t 'user.login.openid', :logo => openid_logo %></label>
+          <label for='openid_url' class="standard-label"><%= raw t 'user.login.openid', :logo => openid_logo %></label>
           <%= text_field_tag("openid_url", "", { :tabindex => 3, :class => "openid_url" }) %>
           <span class="minorNote">(<a href="<%= t 'user.account.openid.link' %>" target="_new"><%= t 'user.account.openid.link text' %></a>)</span>
         </div>