Sha256: 9f3abd01a3d45f3e85905e331221778781bd44d4c61017ada42246b584cbc9e9

Contents?: true

Size: 532 Bytes

Versions: 14

Compression:

Stored size: 532 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

14 entries across 14 versions & 1 rubygems

Version Path
translations_ennder-1.1.2 app/helpers/application_helper.rb
translations_ennder-1.1.1 app/helpers/application_helper.rb
translations_ennder-1.1.0 app/helpers/application_helper.rb
translations_ennder-1.0.9 app/helpers/application_helper.rb
translations_ennder-1.0.8 app/helpers/application_helper.rb
translations_ennder-1.0.6 app/helpers/application_helper.rb
translations_ennder-1.0.5 app/helpers/application_helper.rb
translations_ennder-1.0.4 app/helpers/application_helper.rb
translations_ennder-1.0.3 app/helpers/application_helper.rb
translations_ennder-1.0.2 app/helpers/application_helper.rb
translations_ennder-1.0.1 app/helpers/application_helper.rb
translations_ennder-0.9.6 app/helpers/application_helper.rb
translations_ennder-0.9.5 app/helpers/application_helper.rb
translations_ennder-0.9.0 app/helpers/application_helper.rb