]> source.dussan.org Git - redmine.git/commitdiff
Adds 'closed' css class to closed issues in the issue list (#2458).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 7 Jan 2009 20:30:02 +0000 (20:30 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 7 Jan 2009 20:30:02 +0000 (20:30 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2250 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/issues_helper.rb

index b9e11c9faabc79a98d0a76de074654040294c4b3..b2b85ee4c5ad8b9db8a7f8963335fb60abbf07b4 100644 (file)
@@ -36,6 +36,7 @@ module IssuesHelper
   # Returns a string of css classes that apply to the given issue
   def css_issue_classes(issue)
     s = "issue status-#{issue.status.position} priority-#{issue.priority.position}"
+    s << ' closed' if issue.closed?
     s << ' overdue' if issue.overdue?
     s
   end