css_classes_with_position.diff

Clemens Bergmann, 2013-01-03 22:25

Download (524 Bytes)

View differences:

app/models/issue.rb (working copy)
855 855

  
856 856
  # Returns a string of css classes that apply to the issue
857 857
  def css_classes
858
    s = "issue status-#{status_id} priority-#{priority_id}"
858
    s = "issue status-#{self.status.position} priority-#{self.priority.position}"
859 859
    s << ' closed' if closed?
860 860
    s << ' overdue' if overdue?
861 861
    s << ' child' if child?