Adds 2 css classes (created-by-me and assigned-to-me) to issues created by or assigned to the current user (#2651).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2567 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2009-03-07 16:30:55 +00:00
parent 03572ec569
commit 89719e205e
1 changed files with 2 additions and 0 deletions

View File

@ -38,6 +38,8 @@ module IssuesHelper
s = "issue status-#{issue.status.position} priority-#{issue.priority.position}"
s << ' closed' if issue.closed?
s << ' overdue' if issue.overdue?
s << ' created-by-me' if User.current.logged? && issue.author_id == User.current.id
s << ' assigned-to-me' if User.current.logged? && issue.assigned_to_id == User.current.id
s
end