Feature #13442 » redmine-1.2.1_gantt_version_completed_pourcent_round.diff
lib/redmine/helpers/gantt.rb (copie de travail) | ||
---|---|---|
335 | 335 |
options[:g_width] ||= (self.date_to - self.date_from + 1) * options[:zoom] |
336 | 336 | |
337 | 337 |
coords = coordinates(version.start_date, version.due_date, version.completed_pourcent, options[:zoom]) |
338 |
label = "#{h version } #{h version.completed_pourcent.to_i.to_s}%"
|
|
338 |
label = "#{h version } #{h version.completed_pourcent.to_f.round}%"
|
|
339 | 339 |
label = h("#{version.project} -") + label unless @project && @project == version.project |
340 | 340 | |
341 | 341 |
case options[:format] |