]> source.dussan.org Git - redmine.git/commitdiff
Rails3: use String#html_hours for principals_check_box_tags() at ApplicationHelper.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 20 Aug 2011 10:54:18 +0000 (10:54 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 20 Aug 2011 10:54:18 +0000 (10:54 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6481 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb

index 44c21e81be33b1929dd68dc94cfe2957a0a3fab2..0fc2e9f432ab9fad6b6f3920558e64613347d12e 100644 (file)
@@ -322,7 +322,7 @@ module ApplicationHelper
   end
 
   def html_hours(text)
-    text.gsub(%r{(\d+)\.(\d+)}, '<span class="hours hours-int">\1</span><span class="hours hours-dec">.\2</span>')
+    text.gsub(%r{(\d+)\.(\d+)}, '<span class="hours hours-int">\1</span><span class="hours hours-dec">.\2</span>').html_safe
   end
 
   def authoring(created, author, options={})