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
This commit is contained in:
Jean-Philippe Lang 2009-01-07 20:30:02 +00:00
parent 15996c348d
commit c0f44db4f7
1 changed files with 1 additions and 0 deletions

View File

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