From ad71bffe34e8df1523b91384445ff59cf8bb4cc6 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 10 Sep 2012 22:55:44 +0000 Subject: [PATCH] gantt: code layout cleanup line_for_version method of lib/redmine/helpers/gantt.rb git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10345 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/helpers/gantt.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index eafdda7f9..8763c81ba 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -298,8 +298,10 @@ module Redmine if version.is_a?(Version) && version.start_date && version.due_date options[:zoom] ||= 1 options[:g_width] ||= (self.date_to - self.date_from + 1) * options[:zoom] - coords = coordinates(version.start_date, version.due_date, version.completed_pourcent, options[:zoom]) - label = "#{h version } #{h version.completed_pourcent.to_i.to_s}%" + coords = coordinates(version.start_date, + version.due_date, version.completed_pourcent, + options[:zoom]) + label = "#{h version} #{h version.completed_pourcent.to_i.to_s}%" label = h("#{version.project} -") + label unless @project && @project == version.project case options[:format] when :html