lib/padrino-admin/generators/templates/slim/app/sessions/new.slim.tt in padrino-admin-0.11.4 vs lib/padrino-admin/generators/templates/slim/app/sessions/new.slim.tt in padrino-admin-0.12.0.rc1
- old
+ new
@@ -10,28 +10,28 @@
title = @title.present? ? "#{@title} | Padrino Admin" : "#{pat('login.title')} | Padrino Admin"
= favicon_tag 'favicon.ico'
= stylesheet_link_tag 'bootstrap', 'application'
body
- - form_tag url(:sessions, :create), :class=>'login form-horizontal' do
+ = form_tag url(:sessions, :create), :class=>'login form-horizontal' do
div class="login-header modal-header"
div class="login-logo" = image_tag('logo.png', :alt => "Padrino's logo", :height => 250, :width => 193)
div class="login-body modal-body"
- = [:error, :warning, :notice].map { |type| flash_tag(type, :class => "alert alert-#{type} fade in", :bootstrap => true) }.join.html_safe
+ = {:error => 'danger', :warning => 'warning', :success => 'success', :notice => 'info'}.map { |type, class_name| flash_tag(type, :class => "alert alert-#{class_name} fade in", :bootstrap => true) }.join.html_safe
div class='form-group'
label for="email" class='col-lg-2 control-label' = pat('login.email')
div class='col-lg-10' = email_field_tag :email, :value => params[:email], :autofocus => true, :class => 'form-control'
div class='form-group'
label for="password" class='col-lg-2 control-label' = pat('login.password')
- div class='col-lg-10' = password_field_tag :password, :value => params[:password], :class => 'form-control'
+ div class='col-lg-10' = password_field_tag :password, :class => 'form-control'
fieldset class='login-control-group-last control-group'
div class='login-controls controls'
label class="login-bypass-label checkbox"
= check_box_tag :bypass
| #{pat('login.bypass')}
div class="login-footer modal-footer"
= submit_tag(pat('login.sign_in'), :class => 'btn btn-primary pull-right')
- = javascript_include_tag 'jquery-1.9.0.min', (Padrino.env == :production ? 'bootstrap/bootstrap.min' : %w[bootstrap/affix bootstrap/alert bootstrap/button bootstrap/carousel bootstrap/collapse bootstrap/dropdown bootstrap/tooltip bootstrap/transition bootstrap/modal bootstrap/popover bootstrap/scrollspy bootstrap/tab]), :application
\ No newline at end of file
+ = javascript_include_tag 'jquery-1.9.0.min', (Padrino.env == :production ? 'bootstrap/bootstrap.min' : %w[bootstrap/affix bootstrap/alert bootstrap/button bootstrap/carousel bootstrap/collapse bootstrap/dropdown bootstrap/tooltip bootstrap/transition bootstrap/modal bootstrap/popover bootstrap/scrollspy bootstrap/tab]), :application