comparison app/models/issue.rb @ 139:ddcedb549d4e cannam-pre-20110113-merge

Merge from live branch
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 20 Jan 2011 10:00:51 +0000
parents e0c08b2211ac
children e80647437550
comparison
equal deleted inserted replaced
135:6a2f8e88344e 139:ddcedb549d4e
525 "#{tracker} ##{id}: #{subject}" 525 "#{tracker} ##{id}: #{subject}"
526 end 526 end
527 527
528 # Returns a string of css classes that apply to the issue 528 # Returns a string of css classes that apply to the issue
529 def css_classes 529 def css_classes
530 s = "issue status-#{status.position} priority-#{priority.position}" 530 s = "issue status-#{status.position} "
531 s << "priority-#{priority.position}"
531 s << ' closed' if closed? 532 s << ' closed' if closed?
532 s << ' overdue' if overdue? 533 s << ' overdue' if overdue?
533 s << ' created-by-me' if User.current.logged? && author_id == User.current.id 534 s << ' created-by-me' if User.current.logged? && author_id == User.current.id
534 s << ' assigned-to-me' if User.current.logged? && assigned_to_id == User.current.id 535 s << ' assigned-to-me' if User.current.logged? && assigned_to_id == User.current.id
535 s 536 s