summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-09-24 01:33:02 +0000
committerGo MAEDA <maeda@farend.jp>2024-09-24 01:33:02 +0000
commit4dbbc8fada07965fd15dd960bd1aee6113679d32 (patch)
tree4f8980d8bbc44650a69a42d61fb386897bbac409
parent058b0c31ae5bfe4ed8fce5c53beca860052a1d44 (diff)
downloadredmine-4dbbc8fada07965fd15dd960bd1aee6113679d32.tar.gz
redmine-4dbbc8fada07965fd15dd960bd1aee6113679d32.zip
Merged r23068 from trunk to 5.0-stable (#41263).
git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@23073 e93f8b46-1217-0410-a6f0-8f06a7374b81
-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