summaryrefslogtreecommitdiffstats
path: root/lib/redmine/helpers/gantt.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/redmine/helpers/gantt.rb')
-rw-r--r--lib/redmine/helpers/gantt.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb
index 9a18263c0..133f827c1 100644
--- a/lib/redmine/helpers/gantt.rb
+++ b/lib/redmine/helpers/gantt.rb
@@ -723,7 +723,7 @@ module Redmine
progress_date = calc_progress_date(issue.start_date,
issue.due_before, issue.done_ratio)
css_classes << ' behind-start-date' if progress_date < self.date_from
- css_classes << ' over-end-date' if progress_date > self.date_to
+ css_classes << ' over-end-date' if progress_date > self.date_to && issue.done_ratio > 0
end
s = (+"").html_safe
s << view.assignee_avatar(issue.assigned_to, :size => 13, :class => 'icon-gravatar')
@@ -743,7 +743,7 @@ module Redmine
progress_date = calc_progress_date(version.start_date,
version.due_date, version.visible_fixed_issues.completed_percent)
html_class << ' behind-start-date' if progress_date < self.date_from
- html_class << ' over-end-date' if progress_date > self.date_to
+ html_class << ' over-end-date' if progress_date > self.date_to && version.visible_fixed_issues.completed_percent > 0
end
s = view.link_to_version(version).html_safe
view.content_tag(:span, s, :class => html_class).html_safe