added dynamic container pool graph to administrator dashboard

This commit is contained in:
Hauke Klement
2015-02-17 14:07:48 +01:00
parent a13d1738e2
commit fcc5a85a76
5 changed files with 88 additions and 7 deletions

View File

@ -34,7 +34,7 @@ module ApplicationHelper
def progress_bar(value)
content_tag(:div, class: 'progress') do
content_tag(:div, "#{value}%", :'aria-valuemax' => 100, :'aria-valuemin' => 0, :'aria-valuenow' => value, class: 'progress-bar', role: 'progressbar', style: "width: #{value}%;")
content_tag(:div, "#{value}%", :'aria-valuemax' => 100, :'aria-valuemin' => 0, :'aria-valuenow' => value, class: 'progress-bar', role: 'progressbar', style: "width: #{[value, 100].min}%;")
end
end