diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-01-01 13:45:30 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-01-01 13:45:30 +0000 |
commit | 979a4ecb2295ad8c0fb71f947da2d60c0843ab3b (patch) | |
tree | 010d7ad6565865abd5e237dfd33c97e731765397 | |
parent | c86cb730f19b2a0546a220f2a9183659f011db82 (diff) | |
download | redmine-979a4ecb2295ad8c0fb71f947da2d60c0843ab3b.tar.gz redmine-979a4ecb2295ad8c0fb71f947da2d60c0843ab3b.zip |
Rails3: helper: html_safe for SearchHelper render_results_by_type method
Contributed by Sylvain Utard.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8456 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/helpers/search_helper.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/helpers/search_helper.rb b/app/helpers/search_helper.rb index aab402070..7a66e734d 100644 --- a/app/helpers/search_helper.rb +++ b/app/helpers/search_helper.rb @@ -63,6 +63,8 @@ module SearchHelper links << link_to(h(text), :q => params[:q], :titles_only => params[:titles_only], :all_words => params[:all_words], :scope => params[:scope], t => 1) end - ('<ul>' + links.map {|link| content_tag('li', link)}.join(' ') + '</ul>') unless links.empty? + ('<ul>'.html_safe + + links.map {|link| content_tag('li', link)}.join(' ').html_safe + + '</ul>'.html_safe) unless links.empty? end end |