duetoday_css_class.patch

Go MAEDA, 2011-07-16 10:14

Download (850 Bytes)

View differences:

app/models/issue.rb (working copy)
433 433
    !due_date.nil? && (due_date < Date.today) && !status.is_closed?
434 434
  end
435 435

  
436
  # Returns true if the issue is due today
437
  def duetoday?
438
    !due_date.nil? && (due_date == Date.today) && !status.is_closed?
439
  end
440

  
436 441
  # Is the amount of work done less than it should for the due date
437 442
  def behind_schedule?
438 443
    return false if start_date.nil? || due_date.nil?
......
579 584
    s = "issue status-#{status.position} priority-#{priority.position}"
580 585
    s << ' closed' if closed?
581 586
    s << ' overdue' if overdue?
587
    s << ' duetoday' if duetoday?
582 588
    s << ' child' if child?
583 589
    s << ' parent' unless leaf?
584 590
    s << ' private' if is_private?