Patch #8831 ยป duetoday_css_class.patch
| app/models/issue.rb (working copy) | ||
|---|---|---|
|
!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?
|
||
| ... | ... | |
|
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?
|
||