Project

General

Profile

Patch #13309 » issue.rb.2.patch

Filou Centrinov, 2013-02-27 19:23

View differences:

app/models/issue.rb (working copy)
# Returns a string of css classes that apply to the issue
def css_classes
s = "issue status-#{status_id} #{priority.try(:css_classes)}"
s = "issue status-#{status_id} #{priority.try(:css_classes)} tracker-#{tracker_id}"
s << ' closed' if closed?
s << ' overdue' if overdue?
s << ' child' if child?
(2-2/2)