##// END OF EJS Templates
Use style attribute for setting width of table cells in progress bars (#2267)....
Jean-Philippe Lang -
r2082:218e1bb267d6
parent child
Show More
@@ -542,9 +542,9 module ApplicationHelper
542 legend = options[:legend] || ''
542 legend = options[:legend] || ''
543 content_tag('table',
543 content_tag('table',
544 content_tag('tr',
544 content_tag('tr',
545 (pcts[0] > 0 ? content_tag('td', '', :width => "#{pcts[0].floor}%;", :class => 'closed') : '') +
545 (pcts[0] > 0 ? content_tag('td', '', :style => "width: #{pcts[0].floor}%;", :class => 'closed') : '') +
546 (pcts[1] > 0 ? content_tag('td', '', :width => "#{pcts[1].floor}%;", :class => 'done') : '') +
546 (pcts[1] > 0 ? content_tag('td', '', :style => "width: #{pcts[1].floor}%;", :class => 'done') : '') +
547 (pcts[2] > 0 ? content_tag('td', '', :width => "#{pcts[2].floor}%;", :class => 'todo') : '')
547 (pcts[2] > 0 ? content_tag('td', '', :style => "width: #{pcts[2].floor}%;", :class => 'todo') : '')
548 ), :class => 'progress', :style => "width: #{width};") +
548 ), :class => 'progress', :style => "width: #{width};") +
549 content_tag('p', legend, :class => 'pourcent')
549 content_tag('p', legend, :class => 'pourcent')
550 end
550 end
General Comments 0
You need to be logged in to leave comments. Login now