fixed display of extended bar for exceeded costs

git-svn-id: https://dev.finn.de/svn/cockpit/trunk@72 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
hjust 15 years ago
parent 09efc50cdf
commit df3ea24b80
  1. 4
      app/helpers/costlog_helper.rb

@ -76,8 +76,8 @@ module CostlogHelper
legend = options[:legend] || ''
content_tag('table',
content_tag('tr',
content_tag('td', '', :style => "width: #{(100 / pcts).round}%;", :class => 'closed') +
content_tag('td', '', :style => "width: #{100 - (100 / pcts).round}%;", :class => 'exceeded')
content_tag('td', '', :style => "width: #{((100 / pcts) * 100).round}%;", :class => 'closed') +
content_tag('td', '', :style => "width: #{100 - ((100 / pcts) + 100).round}%;", :class => 'exceeded')
), :class => 'progress', :style => "width: #{width};") +
content_tag('p', legend, :class => 'pourcent')
end

Loading…
Cancel
Save