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.sprite_icon('issue').html_safe
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 = (+"").html_safe
s << view.sprite_icon('package').html_safe