]> source.dussan.org Git - redmine.git/commitdiff
Adds 2 css classes (created-by-me and assigned-to-me) to issues created by or assigne...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 7 Mar 2009 16:30:55 +0000 (16:30 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 7 Mar 2009 16:30:55 +0000 (16:30 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2567 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/issues_helper.rb

index 16678df7d94e88b8e853affb7616cfcf9845c3dd..4157f55de18e208cbe809ded53392fb5868ca397 100644 (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