Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added functionality for Redmine 3.3 #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions lib/progressive/gantt_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def render_issues_with_assignees(issues, options={})
line_for_issue(i, options) unless options[:only] == :subjects
options[:top] += options[:top_increment]
@number_of_rows += 1
break if abort?
end
options[:indent] -= (options[:indent_increment] * @issue_ancestors.size)
end
Expand All @@ -26,14 +25,26 @@ def line_for_issue_with_subject(issue, options)
case options[:format]
when :html
label += " - #{issue.subject}" if options[:show_subject_lines]
html_task(options, coords,
if Redmine::VERSION::MAJOR == 2
html_task(options, coords,
:css => "task " + (issue.leaf? ? 'leaf' : 'parent'),
:label => label, :issue => issue,
:markers => !issue.leaf?)
else
html_task(options, coords, !issue.leaf?, label, Version)
end
when :image
image_task(options, coords, :label => label)
if Redmine::VERSION::MAJOR == 2
image_task(options, coords, :label => label)
else
image_task(options, coords, true, label, Version)
end
when :pdf
pdf_task(options, coords, :label => label)
if Redmine::VERSION::MAJOR == 2
pdf_task(options, coords, :label => label)
else
pdf_task(options, coords, true, label, Version)
end
end
else
''
Expand Down