4/debian-10/plugins/easy_gantt/app/helpers/easy_gantt_helper.rb
# This method exist because
#   1. EntityAttributeHelper is for complex html formating
#   2. Redmine doest not have it
# Gantt should show light and non-html values
This method exist because
1. EntityAttributeHelper is for complex html formating
2. Redmine doest not have it
Gantt should show light and non-html values
This method exist because 1 . EntityAttributeHelper is for complex html formating 2 . Redmine doest not have it Gantt should show light and non - html values
def gantt_format_column(entity, column, value)
    if entity.is_a?(Project) && column.name == :status && respond_to?(:format_project_attribute)
      format_project_attribute(Project, column, value)
    elsif value.is_a?(Float)
      locale = User.current.language.presence || ::I18n.locale
      number_with_precision(value, locale: locale).to_s
    elsif value.is_a?(Array)
      value.join(', ')
    else
      value.to_s
    end
  end
def gantt_format_column ( entity , column , value ) if entity . is_a? ( Project ) && column . name == :status && respond_to? ( :format_project_attribute ) format_project_attribute ( Project , column , value ) elsif value . is_a? ( Float ) locale = User . current . language . presence || :: I18n . locale number_with_precision ( value , locale : locale ) . to_s elsif value . is_a? ( Array ) value . join ( ', ' ) else value . to_s end end
This method exist because
1.
This method exist because 1 .
entity
<not_specific>
column
<not_specific>
value
<not_specific>