Sha256: 53feae7b02aeeab78182fc5a828fa6debd95289d726d0411fbcfb8e66c5046de

Contents?: true

Size: 538 Bytes

Versions: 14

Compression:

Stored size: 538 Bytes

Contents

# Helper methods defined here can be accessed in any controller or view in the application

Admin.helpers do

  # Translates default Padrino flash keys into default Twitter Bootstrap
  # alert CSS class name extension.
  #
  # @param [Symbol] flash - The flash key
  # @return [String] the CSS class name
  def bootstrap_alert_for(flash)
    case flash
      when :error
        return "error"
      when :warning
        return "block"
      when :notice
        return "success"
      when :info
        return "info"
    end
  end

end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
bootstrap-on-0.0.9 lib/bootstrap-on/templates/app/helpers/application_helper.rb
bootstrap-on-0.0.8 lib/bootstrap-on/templates/app/helpers/application_helper.rb
bootstrap-on-0.0.7 lib/bootstrap-on/templates/app/helpers/application_helper.rb
bootstrap-on-0.0.6 lib/bootstrap-on/templates/app/helpers/application_helper.rb
bootstrap-on-0.0.5 lib/bootstrap-on/templates/app/helpers/application_helper.rb
bootstrap-on-0.0.4 lib/bootstrap-on/templates/app/helpers/application_helper.rb
bootstrap-on-0.0.3 lib/bootstrap-on/templates/app/helpers/application_helper.rb
bootstrap-on-0.0.2 lib/bootstrap-on/templates/app/helpers/application_helper.rb
bootstrap-on-0.0.1 lib/bootstrap-on/templates/app/helpers/application_helper.rb
bootstrap-on-0.0.0 lib/bootstrap-on/templates/app/helpers/application_helper.rb
lazy-head-gen-0.3.4 lib/lazy-head-gen/templates/admin_app/app/helpers/application_helper.rb
lazy-head-gen-0.3.3 lib/lazy-head-gen/templates/admin_app/app/helpers/application_helper.rb
lazy-head-gen-0.3.2 lib/lazy-head-gen/templates/admin_app/app/helpers/application_helper.rb
lazy-head-gen-0.3.1 lib/lazy-head-gen/templates/admin_app/app/helpers/application_helper.rb