minor improvements for progress bars
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user