##// 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 legend = options[:legend] || ''
807 legend = options[:legend] || ''
808 content_tag('table',
808 content_tag('table',
809 content_tag('tr',
809 content_tag('tr',
810 (pcts[0] > 0 ? content_tag('td', '', :style => "width: #{pcts[0]}%;", :class => 'closed') : '') +
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') : '') +
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') : '')
812 (pcts[2] > 0 ? content_tag('td', '', :style => "width: #{pcts[2]}%;", :class => 'todo') : ''.html_safe)
813 ), :class => 'progress', :style => "width: #{width};") +
813 ), :class => 'progress', :style => "width: #{width};").html_safe +
814 content_tag('p', legend, :class => 'pourcent')
814 content_tag('p', legend, :class => 'pourcent').html_safe
815 end
815 end
816
816
817 def checked_image(checked=true)
817 def checked_image(checked=true)
General Comments 0
You need to be logged in to leave comments. Login now