]> source.dussan.org Git - redmine.git/commitdiff
Rails3: use String#html_safe at GanttHelper.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 20 Aug 2011 11:51:02 +0000 (11:51 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 20 Aug 2011 11:51:02 +0000 (11:51 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6488 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/gantt_helper.rb

index 03bd8451f3e4faa765376b22284d21103dc8418b..477410f09ee161eae3ce4b4a4865ac15687f4845 100644 (file)
@@ -25,7 +25,7 @@ module GanttHelper
           params.merge(gantt.params.merge(:zoom => (gantt.zoom+1))),
           :class => 'icon icon-zoom-in'
       else
-        content_tag('span', l(:text_zoom_in), :class => 'icon icon-zoom-in')
+        content_tag('span', l(:text_zoom_in), :class => 'icon icon-zoom-in').html_safe
       end
 
     when :out
@@ -34,7 +34,7 @@ module GanttHelper
           params.merge(gantt.params.merge(:zoom => (gantt.zoom-1))),
           :class => 'icon icon-zoom-out'
       else
-        content_tag('span', l(:text_zoom_out), :class => 'icon icon-zoom-out')
+        content_tag('span', l(:text_zoom_out), :class => 'icon icon-zoom-out').html_safe
       end
     end
   end