Adds css classes to parent/child issues (#7986).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5221 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
f6ac158de9
commit
437c5658d7
|
@ -532,6 +532,8 @@ class Issue < ActiveRecord::Base
|
|||
s = "issue status-#{status.position} priority-#{priority.position}"
|
||||
s << ' closed' if closed?
|
||||
s << ' overdue' if overdue?
|
||||
s << ' child' if child?
|
||||
s << ' parent' unless leaf?
|
||||
s << ' created-by-me' if User.current.logged? && author_id == User.current.id
|
||||
s << ' assigned-to-me' if User.current.logged? && assigned_to_id == User.current.id
|
||||
s
|
||||
|
|
Loading…
Reference in New Issue