summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-09-10 22:56:15 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-09-10 22:56:15 +0000
commit0cd08ed08cf7bf48364d98a5ca1d424801f641c0 (patch)
treee91afbdf3f278a8c93aefe8d4dd7c3bd9402cf79 /lib
parentad71bffe34e8df1523b91384445ff59cf8bb4cc6 (diff)
downloadredmine-0cd08ed08cf7bf48364d98a5ca1d424801f641c0.tar.gz
redmine-0cd08ed08cf7bf48364d98a5ca1d424801f641c0.zip
gantt: code layout cleanup line_for_issue method of lib/redmine/helpers/gantt.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10346 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/helpers/gantt.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb
index 8763c81ba..7ef93b014 100644
--- a/lib/redmine/helpers/gantt.rb
+++ b/lib/redmine/helpers/gantt.rb
@@ -353,10 +353,13 @@ module Redmine
# Skip issues that don't have a due_before (due_date or version's due_date)
if issue.is_a?(Issue) && issue.due_before
coords = coordinates(issue.start_date, issue.due_before, issue.done_ratio, options[:zoom])
- label = "#{ issue.status.name } #{ issue.done_ratio }%"
+ label = "#{issue.status.name} #{issue.done_ratio}%"
case options[:format]
when :html
- html_task(options, coords, :css => "task " + (issue.leaf? ? 'leaf' : 'parent'), :label => label, :issue => issue, :markers => !issue.leaf?)
+ html_task(options, coords,
+ :css => "task " + (issue.leaf? ? 'leaf' : 'parent'),
+ :label => label, :issue => issue,
+ :markers => !issue.leaf?)
when :image
image_task(options, coords, :label => label)
when :pdf