Adds a helper that returns issues css classes.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2139 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang committed 2008-12-16 21:11:37 +00:00
1 parent 7cea286c23
commit 02c2a83494
4 files changed
+9 -3

No files matched your search

+6
View File
@@ -33,6 +33,12 @@ module IssuesHelper
"<strong>#{@cached_label_priority}</strong>: #{issue.priority.name}"
end
# 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
end
def sidebar_queries
unless @sidebar_queries
# User can see public queries and his own queries