Sha256: 280b8778dc3a5bdf7615f9e2b3915a06f73d6cab63ebceb8b58032be49a313cb

Contents?: true

Size: 380 Bytes

Versions: 17

Compression:

Stored size: 380 Bytes

Contents

module Admin::LoginHelper
  
  def login_flash_message
    if not flash.empty?
      content_tag :div, flash.values.first, 
        :id => "flash-#{flash.keys.first}", 
        :class => 'application-message'
    else
      ''
    end   
  end
  
  def login_button_tag(label)
    content_tag(:button, content_tag(:span, label), :type => 'submit', :class => 'button')
  end
  
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
locomotive_cms-0.0.3.3 app/helpers/admin/login_helper.rb
locomotive_cms-0.0.3.1 app/helpers/admin/login_helper.rb
locomotive_cms-0.0.2.9 app/helpers/admin/login_helper.rb
locomotive_cms-0.0.2.8 app/helpers/admin/login_helper.rb
locomotive_cms-0.0.2.7 app/helpers/admin/login_helper.rb
locomotive_cms-0.0.2.6 app/helpers/admin/login_helper.rb
locomotive_cms-0.0.2.5 app/helpers/admin/login_helper.rb
locomotive_cms-0.0.2.4 app/helpers/admin/login_helper.rb
locomotive_cms-0.0.2.3 app/helpers/admin/login_helper.rb
locomotive_cms-0.0.2.2 app/helpers/admin/login_helper.rb
locomotive_cms-0.0.2.1 app/helpers/admin/login_helper.rb
locomotive_cms-0.0.2 app/helpers/admin/login_helper.rb
locomotive_cms-0.0.1.4 app/helpers/admin/login_helper.rb
locomotive_cms-0.0.1.3 app/helpers/admin/login_helper.rb
locomotive_cms-0.0.1.2 app/helpers/admin/login_helper.rb
locomotive_cms-0.0.1.1 app/helpers/admin/login_helper.rb
locomotive_cms-0.0.1 app/helpers/admin/login_helper.rb