Patch #2267 ยป use_css_for_width_of_progress_bar_table_cells.diff
| app/helpers/application_helper.rb (working copy) | ||
|---|---|---|
| 542 | 542 |
legend = options[:legend] || '' |
| 543 | 543 |
content_tag('table',
|
| 544 | 544 |
content_tag('tr',
|
| 545 |
(pcts[0] > 0 ? content_tag('td', '', :width => "#{pcts[0].floor}%;", :class => 'closed') : '') +
|
|
| 546 |
(pcts[1] > 0 ? content_tag('td', '', :width => "#{pcts[1].floor}%;", :class => 'done') : '') +
|
|
| 547 |
(pcts[2] > 0 ? content_tag('td', '', :width => "#{pcts[2].floor}%;", :class => 'todo') : '')
|
|
| 545 |
(pcts[0] > 0 ? content_tag('td', '', :style => "width: #{pcts[0].floor}%;", :class => 'closed') : '') +
|
|
| 546 |
(pcts[1] > 0 ? content_tag('td', '', :style => "width: #{pcts[1].floor}%;", :class => 'done') : '') +
|
|
| 547 |
(pcts[2] > 0 ? content_tag('td', '', :style => "width: #{pcts[2].floor}%;", :class => 'todo') : '')
|
|
| 548 | 548 |
), :class => 'progress', :style => "width: #{width};") +
|
| 549 | 549 |
content_tag('p', legend, :class => 'pourcent')
|
| 550 | 550 |
end |