From: Jean-Philippe Lang Date: Wed, 7 Jan 2009 20:30:02 +0000 (+0000) Subject: Adds 'closed' css class to closed issues in the issue list (#2458). X-Git-Tag: 0.9.0~812 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c0f44db4f705e45127cd2352cd86abdbfa0ec1d1;p=redmine.git Adds 'closed' css class to closed issues in the issue list (#2458). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2250 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index b9e11c9fa..b2b85ee4c 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -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