From 89719e205e13e09dc6b85a1d48e3590c20787703 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 7 Mar 2009 16:30:55 +0000 Subject: [PATCH] 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 --- app/helpers/issues_helper.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index 16678df7..4157f55d 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -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