Sha256: 51a990ba1c608475f192b249e0fcea00f5ab4b8f920e7c853f974878a97acd67

Contents?: true

Size: 317 Bytes

Versions: 17

Compression:

Stored size: 317 Bytes

Contents

module Phcpress
	module ApplicationHelper

		# Bootstrap Notification System
		def flash_class(level)
			case level.to_sym
				when :notice then "alert alert-info"
				when :success then "alert alert-success"
				when :error then "alert alert-danger"
				when :alert then "alert alert-warning"
			end
		end

	end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
phcpress-1.0.0 app/helpers/phcpress/application_helper.rb
phcpress-0.11.1 app/helpers/phcpress/application_helper.rb
phcpress-0.11.0 app/helpers/phcpress/application_helper.rb
phcpress-0.10.8 app/helpers/phcpress/application_helper.rb
phcpress-0.9.7 app/helpers/phcpress/application_helper.rb
phcpress-0.9.6 app/helpers/phcpress/application_helper.rb
phcpress-0.7.11 app/helpers/phcpress/application_helper.rb
phcpress-0.7.9 app/helpers/phcpress/application_helper.rb
phcpress-0.6.0 app/helpers/phcpress/application_helper.rb
phcpress-0.5.9b app/helpers/phcpress/application_helper.rb
phcpress-0.4.9b app/helpers/phcpress/application_helper.rb
phcpress-0.4.5b app/helpers/phcpress/application_helper.rb
phcpress-0.4.1b app/helpers/phcpress/application_helper.rb
phcpress-0.3.1b app/helpers/phcpress/application_helper.rb
phcpress-0.2.1b app/helpers/phcpress/application_helper.rb
phcpress-0.1.9b app/helpers/phcpress/application_helper.rb
phcpress-0.1.5b app/helpers/phcpress/application_helper.rb