cache login form & footer
This commit is contained in:
parent
45444316cb
commit
338e17ff87
2 changed files with 42 additions and 42 deletions
|
|
@ -20,37 +20,35 @@
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
.container{:style => 'text-align:center;'}
|
- cache(:login_form) do
|
||||||
#login
|
.container{:style => 'text-align:center;'}
|
||||||
= image_tag('logo_caps.png', :id => 'logo');
|
#login
|
||||||
%br
|
= 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|
|
%br
|
||||||
%p
|
= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f|
|
||||||
= f.label :username , t('username')
|
%p
|
||||||
= f.text_field :username
|
= f.label :username , t('username')
|
||||||
%span.pod_location
|
= f.text_field :username
|
||||||
="@#{AppConfig[:pod_uri].host}"
|
%span.pod_location
|
||||||
|
="@#{AppConfig[:pod_uri].host}"
|
||||||
|
|
||||||
%p
|
%p
|
||||||
= f.label :password , t('password')
|
= f.label :password , t('password')
|
||||||
= f.password_field :password
|
= f.password_field :password
|
||||||
%span
|
%span
|
||||||
- if devise_mapping.recoverable? && controller_name != 'passwords'
|
- if devise_mapping.recoverable? && controller_name != 'passwords'
|
||||||
= link_to t('devise.shared.links.forgot_your_password'), new_password_path(resource_name)
|
= link_to t('devise.shared.links.forgot_your_password'), new_password_path(resource_name)
|
||||||
- else
|
- else
|
||||||
\.
|
\.
|
||||||
/%p.checkbox_select
|
|
||||||
/- if devise_mapping.rememberable?
|
|
||||||
/= f.check_box :remember_me
|
|
||||||
/= f.label :remember_me , t('.remember_me')
|
|
||||||
%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"
|
%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"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -88,17 +88,19 @@
|
||||||
|
|
||||||
.clearfix
|
.clearfix
|
||||||
/=render :partial => 'layouts/debug.haml'
|
/=render :partial => 'layouts/debug.haml'
|
||||||
%footer
|
|
||||||
.container
|
- cache(:footer) do
|
||||||
%ul#footer_nav
|
%footer
|
||||||
%li= link_to '@joindiaspora', "http://twitter.com/joindiaspora"
|
.container
|
||||||
%li= link_to 'github', "https://github.com/diaspora/diaspora"
|
%ul#footer_nav
|
||||||
%li= link_to t('layouts.header.blog'), "http://blog.joindiaspora.com"
|
%li= link_to '@joindiaspora', "http://twitter.com/joindiaspora"
|
||||||
%li= link_to t('layouts.header.code'), "#{root_url.chomp('/')}/source.tar.gz" unless request.url.match(/joindiaspora.com/)
|
%li= link_to 'github', "https://github.com/diaspora/diaspora"
|
||||||
%li= link_to t('.whats_new'), 'https://github.com/diaspora/diaspora/wiki/Changelog'
|
%li= link_to t('layouts.header.blog'), "http://blog.joindiaspora.com"
|
||||||
= image_tag 'powered_by_diaspora.png', :height => "11px", :width => "145px"
|
%li= link_to t('layouts.header.code'), "#{root_url.chomp('/')}/source.tar.gz" unless request.url.match(/joindiaspora.com/)
|
||||||
%br
|
%li= link_to t('.whats_new'), 'https://github.com/diaspora/diaspora/wiki/Changelog'
|
||||||
= link_to t('.have_a_problem'), 'http://diaspora.shapado.com/'
|
= image_tag 'powered_by_diaspora.png', :height => "11px", :width => "145px"
|
||||||
|
%br
|
||||||
|
= link_to t('.have_a_problem'), 'http://diaspora.shapado.com/'
|
||||||
|
|
||||||
-if !@landing_page && request.url.match(/joindiaspora.com/)
|
-if !@landing_page && request.url.match(/joindiaspora.com/)
|
||||||
:javascript
|
:javascript
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue