1 <% content_for :head do %>
2 <%= javascript_include_tag "login" %>
5 <% content_for :heading do %>
6 <h1><%= t ".heading" %></h1>
10 <p class='text-muted'><%= t ".no account" %> <%= link_to t(".register now"), user_new_path(:referer => params[:referer]) %></p>
12 <%= bootstrap_form_tag(:action => "login", :html => { :id => "login_form" }) do |f| %>
13 <%= hidden_field_tag("referer", h(params[:referer]), :autocomplete => "off") %>
15 <%= f.text_field :username, :label => t(".email or username"), :tabindex => 1, :value => params[:username] %>
16 <%= f.password_field :password, :label => t(".password"), :tabindex => 2, :value => "", :help => link_to(t(".lost password link"), :controller => "passwords", :action => "lost_password") %>
17 <%= f.form_group do %>
18 <%= f.check_box :remember_me, { :label => t(".remember"), :tabindex => 3, :checked => (params[:remember_me] == "yes") }, "yes" %>
21 <%= f.primary t(".login_button"), :tabindex => 4 %>
27 <div class="form-group">
28 <label><%= t ".with external" %></label>
30 <ul class='list-unstyled' id="login_auth_buttons">
31 <li><%= link_to image_tag("openid.png", :alt => t(".auth_providers.openid.title")), "#", :id => "openid_open_url", :title => t(".auth_providers.openid.title") %></li>
32 <% if Settings.key?(:google_auth_id) -%>
33 <li><%= auth_button "google", "google" %></li>
35 <% if Settings.key?(:facebook_auth_id) -%>
36 <li><%= auth_button "facebook", "facebook" %></li>
38 <% if Settings.key?(:windowslive_auth_id) -%>
39 <li><%= auth_button "windowslive", "windowslive" %></li>
41 <% if Settings.key?(:github_auth_id) -%>
42 <li><%= auth_button "github", "github" %></li>
44 <% if Settings.key?(:wikipedia_auth_id) -%>
45 <li><%= auth_button "wikipedia", "wikipedia" %></li>
47 <li><%= auth_button "wordpress", "openid", :openid_url => "wordpress.com" %></li>
48 <li><%= auth_button "aol", "openid", :openid_url => "aol.com" %></li>
51 <%= form_tag(auth_path(:provider => "openid"), :id => "openid_login_form") do %>
52 <div id='login_openid_url' class="form-group">
53 <label for='openid_url'><%= t ".openid_html", :logo => openid_logo %></label>
54 <%= hidden_field_tag("referer", params[:referer], :autocomplete => "off") %>
55 <%= text_field_tag("openid_url", "", :tabindex => 3, :autocomplete => "on", :class => "openid_url form-control") %>
56 <span class="form-text text-muted">(<a href="<%= t "users.account.openid.link" %>" target="_new"><%= t "users.account.openid.link text" %></a>)</span>
59 <%= submit_tag t(".login_button"), :tabindex => 6, :id => "login_openid_submit", :class => "btn btn-primary" %>