54 lines
1.7 KiB
Text
54 lines
1.7 KiB
Text
-# Copyright (c) 2010, Diaspora Inc. This file is
|
|
-# licensed under the Affero General Public License version 3 or later. See
|
|
-# the COPYRIGHT file.
|
|
|
|
= content_for :head do
|
|
:css
|
|
header{ display:none; }
|
|
footer{ position: absolute; bottom: 12px; }
|
|
|
|
:javascript
|
|
$(document).ready( function(){
|
|
$("form").submit(function(){
|
|
$(this).fadeOut(200, function(){
|
|
$('#logo').animate({
|
|
'margin-top': '+=80'
|
|
}, 250, function(){
|
|
$("#spinner").fadeIn(300);
|
|
});
|
|
});
|
|
});
|
|
});
|
|
|
|
- cache(:login_form) do
|
|
.container{:style => 'text-align:center;'}
|
|
#login
|
|
= image_tag('logo_caps.png', :id => 'logo', :width => 143, :height => 21)
|
|
%br
|
|
%br
|
|
= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f|
|
|
%p
|
|
= f.label :username , t('username')
|
|
= f.text_field :username
|
|
%span.pod_location
|
|
="@#{AppConfig[:pod_uri].host}"
|
|
|
|
%p
|
|
= f.label :password , t('password')
|
|
= f.password_field :password
|
|
%span
|
|
- if devise_mapping.recoverable? && controller_name != 'passwords'
|
|
= link_to t('devise.shared.links.forgot_your_password'), new_password_path(resource_name)
|
|
- else
|
|
\.
|
|
|
|
%p.submit
|
|
= f.submit t('.sign_in')
|
|
%span
|
|
- if !AppConfig[:registrations_closed] && devise_mapping.registerable? && controller_name != 'registrations'
|
|
= link_to t('devise.shared.links.sign_up'), new_registration_path(resource_name)
|
|
- else
|
|
\.
|
|
|
|
= image_tag 'ajax-loader.gif', :id => "spinner", :class => "hidden"
|
|
|