Sha256: 6dfc58a727e4f94221e5708777684e002accfd735c6372db9089989452e348e4

Contents?: true

Size: 533 Bytes

Versions: 7

Compression:

Stored size: 533 Bytes

Contents

# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
	#Label de la forme : "<b><nom_colonne></b>: "
	def label_bold_and_colon(object_name, method, text = nil, options = {})
#		Rails.logger.debug "DEBUG JBA : #{self.class.name}.label_bold_and_colon(#{object_name}, #{method}, #{text}, #{options})"
		if text.blank?
			label(true, object_name, method, method.humanize, true, options)
		else
			label(true, object_name, method, "<b>#{text}</b> :", true, options)
		end
	end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
translations_ennder-1.1.9 app/helpers/application_helper.rb
translations_ennder-1.1.8 app/helpers/application_helper.rb
translations_ennder-1.1.7 app/helpers/application_helper.rb
translations_ennder-1.1.6 app/helpers/application_helper.rb
translations_ennder-1.1.5 app/helpers/application_helper.rb
translations_ennder-1.1.4 app/helpers/application_helper.rb
translations_ennder-1.1.3 app/helpers/application_helper.rb