diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-05-16 08:28:36 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-05-16 08:28:36 +0000 |
commit | 6080a4cae38e29a849648323c7cfb576bb3bf81f (patch) | |
tree | 2bbf7fe41754455a472472c15f013bb6733b781a | |
parent | 4b0f418c801a802a6b8c95ec8daab3ca7c9bc56f (diff) | |
download | redmine-6080a4cae38e29a849648323c7cfb576bb3bf81f.tar.gz redmine-6080a4cae38e29a849648323c7cfb576bb3bf81f.zip |
gantt: completed percent truncated instead of rounded (#14737)
Contributed by Jérôme BATAILLE.
git-svn-id: http://svn.redmine.org/redmine/trunk@13137 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | lib/redmine/helpers/gantt.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index bc953543d..4568421f1 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -338,7 +338,7 @@ module Redmine coords = coordinates(version.start_date, version.due_date, version.completed_percent, options[:zoom]) - label = "#{h version} #{h version.completed_percent.to_i.to_s}%" + label = "#{h(version)} #{h(version.completed_percent.to_f.round)}%" label = h("#{version.project} -") + label unless @project && @project == version.project case options[:format] when :html |