Highlight active issue query in the sidebar.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8660 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-01-16 18:01:34 +00:00
parent 61bd06dde7
commit 0dcc879b3c
1 changed files with 3 additions and 1 deletions

View File

@ -146,7 +146,9 @@ module IssuesHelper
content_tag('h3', h(title)) + content_tag('h3', h(title)) +
queries.collect {|query| queries.collect {|query|
link_to(h(query.name), url_params.merge(:query_id => query)) css = 'query'
css << ' selected' if query == @query
link_to(h(query.name), url_params.merge(:query_id => query), :class => css)
}.join('<br />').html_safe }.join('<br />').html_safe
end end