diaspora/app/views/sessions/new.haml
Steven Hancock 1aa0b15c8c Move Javascript to the asset pipeline
* Move all Diaspora-specific javascripts to app/assets/javascripts
* Move all vendored javascripts to vendor/assets/javascripts
* Add the appropriate Sprockets require directives to make sure
  everything gets included in the right order
* Remove Jammit dependencies
* Fix all templates that were using Jammit's include_javascripts helper
* Add handlebars_assets gem for compiling Handlebars templates
* Move all Handlebars templates to app/assets/templates and rename
  from .handlebars to .jst.hbs (this is to keep them in the same
  global JST namespace that they were in under Jammit)
* Add public/assets to .gitignore since these files can and should
  be re-generated by Heroku or Capistrano during each deploy
* Fix a few Handlebars templates that were looking for images in the
  wrong location (I'm sure there are others, but it's late)
* Configure application.rb to precompile all javascript and css assets
  that were compiled by Jammit in the Rails 3.0 code
2012-03-27 18:07:44 -07:00

56 lines
1.8 KiB
Text

-# Copyright (c) 2010-2012, Diaspora Inc. This file is
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
= content_for :page_title do
= t('devise.sessions.new.sign_in')
| DIASPORA* ALPHA
= content_for :head do
= javascript_include_tag :login
:css
header, #flash_alert { display:none; }
footer{ position: absolute; bottom: 6px; }
.container{:style => 'text-align:center;'}
#login
%p
= image_tag('asterisk.png', :id => 'asterisk', :class => 'logo', :height => 154, :width => 154)
%p
= image_tag('logo_caps.png', :id => 'logo', :width => 98, :height => 14)
- flash.each do |name, msg|
%p{:class => "login_#{name}"}= msg
= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f|
%p
= f.label :username , t('username')
= f.text_field :username, :tabindex => 1, :value => prefilled_username, :placeholder => t('username')
%br
%p
= f.label :password , t('password')
= f.password_field :password, :tabindex => 2, :placeholder => t('password')
- if display_password_reset_link?
= link_to t('devise.shared.links.forgot_your_password'), new_password_path(resource_name), :id => "forgot_password_link", :tabindex => 5
%br
%p#controls.checkbox_select
%span#remember_me
- if devise_mapping.rememberable?
= f.check_box :remember_me, :tabindex => 3
= f.label :remember_me, t('devise.sessions.new.remember_me')
= f.submit t('devise.sessions.new.sign_in'), :tabindex => 4
- if display_registration_link?
%br
%br
%br
%br
= link_to t('devise.shared.links.sign_up'), new_registration_path(resource_name)