minor improvements for progress bars

This commit is contained in:
Hauke Klement
2015-03-11 09:58:33 +01:00
parent 0673d44820
commit c811e1a78f
3 changed files with 5 additions and 4 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, 100].min}%;")
content_tag(:div, "#{value}%", :'aria-valuemax' => 100, :'aria-valuemin' => 0, :'aria-valuenow' => value, class: 'progress-bar progress-bar-striped', role: 'progressbar', style: "width: #{[value, 100].min}%;")
end
end