@@ -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', '', : |
|
545 | (pcts[0] > 0 ? content_tag('td', '', :style => "width: #{pcts[0].floor}%;", :class => 'closed') : '') + | |
546 |
(pcts[1] > 0 ? content_tag('td', '', : |
|
546 | (pcts[1] > 0 ? content_tag('td', '', :style => "width: #{pcts[1].floor}%;", :class => 'done') : '') + | |
547 |
(pcts[2] > 0 ? content_tag('td', '', : |
|
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