add_category_id_to_issues_css_classes-trunk_at_r14420.diff

Mischa The Evil, 2015-07-08 00:53

Download (531 Bytes)

View differences:

app/models/issue.rb
1202 1202
  # Returns a string of css classes that apply to the issue
1203 1203
  def css_classes(user=User.current)
1204 1204
    s = "issue tracker-#{tracker_id} status-#{status_id} #{priority.try(:css_classes)}"
1205
    s << " category-#{category_id}" if category.present?
1205 1206
    s << ' closed' if closed?
1206 1207
    s << ' overdue' if overdue?
1207 1208
    s << ' child' if child?