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:
parent
03572ec569
commit
89719e205e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue