.progress
  - if progress.nil?
    #{status}
  - else
    %div{ class: "progress-bar progress-bar-#{status}", role: "progressbar", style: "width: #{progress}%" }
      - if progress >= 30
        #{progress}%
    - if progress < 30
      #{progress}%

.progress
  - if progress.nil?
    = status
  - else
    -# haml-lint:disable InlineStyles
    %div{ class: "progress-bar progress-bar-#{status}", role: "progressbar", style: "width: #{progress}%" }
      - if progress >= 30
        #{progress}%
    - if progress < 30
      #{progress}%
    -# haml-lint:enable InlineStyles

Allow inline style on the progress bar width
Allow inline style on the progress bar width
