Project

General

Profile

Defect #41263 » enhance-progress-line_trunk@23061.patch

Minoru Maeda, 2024-09-18 10:30

View differences:

app/assets/javascripts/gantt.js
123 123
    } else {
124 124
      var issue_done = $("#task-done-" + $(element).attr("id"));
125 125
      var is_behind_start = $(element).children('span').hasClass('behind-start-date');
126
      var is_over_end     = $(element).children('span').hasClass('over-end-date');
127
      if (is_over_end) {
126
      var is_ahead_start  = $(element).children('span').hasClass('ahead-start-date');
127
      if (is_ahead_start) {
128 128
        arr.push({left: draw_right, top: element_top_upper, is_right_edge: true});
129 129
        arr.push({left: draw_right, top: element_top_lower, is_right_edge: true, none_stroke: true});
130 130
      } else if (issue_done.length > 0) {
lib/redmine/helpers/gantt.rb
723 723
            progress_date = calc_progress_date(issue.start_date,
724 724
                                               issue.due_before, issue.done_ratio)
725 725
            css_classes << ' behind-start-date' if progress_date < self.date_from
726
            css_classes << ' over-end-date' if progress_date > self.date_to
726
            css_classes << ' ahead-start-date' if progress_date > self.date_to && issue.done_ratio > 0
727 727
          end
728 728
          s = (+"").html_safe
729 729
          s << view.sprite_icon('issue').html_safe
......
744 744
            progress_date = calc_progress_date(version.start_date,
745 745
                                               version.due_date, version.visible_fixed_issues.completed_percent)
746 746
            html_class << ' behind-start-date' if progress_date < self.date_from
747
            html_class << ' over-end-date' if progress_date > self.date_to
747
            html_class << ' ahead-start-date' if progress_date > self.date_to && version.visible_fixed_issues.completed_percent > 0
748 748
          end
749 749
          s = (+"").html_safe
750 750
          s << view.sprite_icon('package').html_safe
(1-1/7)