1 <% content_for :head do %>
2 <%= javascript_include_tag "login" %>
5 <% content_for :heading do %>
6 <h1><%= t ".heading" %></h1>
10 <%= form_tag({ :action => "login" }, { :id => "login_form" }) do %>
11 <%= hidden_field_tag("referer", h(params[:referer])) %>
13 <p class='deemphasize'><%= t ".no account" %> <%= link_to t(".register now"), :action => :new, :referer => params[:referer] %></p>
15 <div id="loginForm" class="standard-form">
18 <div class="form-row">
19 <label for="username" class="standard-label">
20 <%= t ".email or username" %>
22 <%= text_field_tag "username", params[:username], :tabindex => 1 %>
24 <div class="form-row">
25 <label for="password" class="standard-label">
28 <%= password_field_tag "password", "", :tabindex => 2 %>
30 <span class="form-help deemphasize">
31 <%= link_to t(".lost password link"), :controller => "users", :action => "lost_password" %>
36 <%= check_box_tag "remember_me", "yes", params[:remember_me] == "yes", :tabindex => 3 %>
37 <label for="remember_me" class="standard-label">
40 <%= submit_tag t(".login_button"), :tabindex => 4 %>
47 <%= form_tag(auth_path(:provider => "openid"), :id => "openid_login_form") do %>
48 <div id="loginForm" class="standard-form">
50 <fieldset class='form-divider'>
52 <p class='standard-label'><%= t ".with external" %></p>
54 <ul class='clearfix' id="login_auth_buttons">
55 <li><%= link_to image_tag("openid.png", :alt => t(".auth_providers.openid.title")), "#", :id => "openid_open_url", :title => t(".auth_providers.openid.title") %></li>
56 <% if Settings.key?(:google_auth_id) -%>
57 <li><%= auth_button "google", "google" %></li>
59 <% if Settings.key?(:facebook_auth_id) -%>
60 <li><%= auth_button "facebook", "facebook" %></li>
62 <% if Settings.key?(:windowslive_auth_id) -%>
63 <li><%= auth_button "windowslive", "windowslive" %></li>
65 <% if Settings.key?(:github_auth_id) -%>
66 <li><%= auth_button "github", "github" %></li>
68 <% if Settings.key?(:wikipedia_auth_id) -%>
69 <li><%= auth_button "wikipedia", "wikipedia" %></li>
71 <li><%= auth_button "yahoo", "openid", :openid_url => "yahoo.com" %></li>
72 <li><%= auth_button "wordpress", "openid", :openid_url => "wordpress.com" %></li>
73 <li><%= auth_button "aol", "openid", :openid_url => "aol.com" %></li>
76 <div id='login_openid_url' class='form-row'>
77 <label for='openid_url' class="standard-label"><%= raw t ".openid", :logo => openid_logo %></label>
78 <%= hidden_field_tag("openid_referer", params[:referer]) if params[:referer] %>
79 <%= text_field_tag("openid_url", "", :tabindex => 3, :class => "openid_url") %>
80 <span class="minorNote">(<a href="<%= t "users.account.openid.link" %>" target="_new"><%= t "users.account.openid.link text" %></a>)</span>
83 <%= submit_tag t(".login_button"), :tabindex => 6, :id => "login_openid_submit" %>