]> source.dussan.org Git - redmine.git/commitdiff
Adds css classes to parent/child issues (#7986).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 25 Mar 2011 18:31:32 +0000 (18:31 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 25 Mar 2011 18:31:32 +0000 (18:31 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5221 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/issue.rb

index 08d97bcdfcab802fa7407d0ee05087318770a735..21c721c944c8dcc047b201c1fe25ffcd6c847b90 100644 (file)
@@ -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