##// END OF EJS Templates
Rails3: use String#html_safe for progress_bar() at ApplicationHelper....
Toshi MARUYAMA -
r6370:ada823a923de
parent child
Show More
@@ -807,11 +807,11 module ApplicationHelper
807 807 legend = options[:legend] || ''
808 808 content_tag('table',
809 809 content_tag('tr',
810 (pcts[0] > 0 ? content_tag('td', '', :style => "width: #{pcts[0]}%;", :class => 'closed') : '') +
811 (pcts[1] > 0 ? content_tag('td', '', :style => "width: #{pcts[1]}%;", :class => 'done') : '') +
812 (pcts[2] > 0 ? content_tag('td', '', :style => "width: #{pcts[2]}%;", :class => 'todo') : '')
813 ), :class => 'progress', :style => "width: #{width};") +
814 content_tag('p', legend, :class => 'pourcent')
810 (pcts[0] > 0 ? content_tag('td', '', :style => "width: #{pcts[0]}%;", :class => 'closed') : ''.html_safe) +
811 (pcts[1] > 0 ? content_tag('td', '', :style => "width: #{pcts[1]}%;", :class => 'done') : ''.html_safe) +
812 (pcts[2] > 0 ? content_tag('td', '', :style => "width: #{pcts[2]}%;", :class => 'todo') : ''.html_safe)
813 ), :class => 'progress', :style => "width: #{width};").html_safe +
814 content_tag('p', legend, :class => 'pourcent').html_safe
815 815 end
816 816
817 817 def checked_image(checked=true)
General Comments 0
You need to be logged in to leave comments. Login now