Index: app/models/issue.rb =================================================================== --- app/models/issue.rb (revision 6294) +++ app/models/issue.rb (working copy) @@ -433,6 +433,11 @@ !due_date.nil? && (due_date < Date.today) && !status.is_closed? end + # Returns true if the issue is due today + def duetoday? + !due_date.nil? && (due_date == Date.today) && !status.is_closed? + end + # Is the amount of work done less than it should for the due date def behind_schedule? return false if start_date.nil? || due_date.nil? @@ -579,6 +584,7 @@ s = "issue status-#{status.position} priority-#{priority.position}" s << ' closed' if closed? s << ' overdue' if overdue? + s << ' duetoday' if duetoday? s << ' child' if child? s << ' parent' unless leaf? s << ' private' if is_private?