- if url
  .btn-group-vertical.d-flex
    = link_to(url, class: "btn btn-sm #{build_status_category_color(status)}") do
      %i.fa.me-2{ class: build_status_icon(status), title: status.humanize }
      %span.architecture #{architecture} :
      = text
    -# For historical builds the buildtype is nil. In this case the RPM lint links will be visible
    - if buildtype.in?([nil, 'spec'])
      = link_to(rpm_lint_url, class: "btn btn-sm btn-outline-secondary") do
        %i.fas.fa-gauge-high
        RPM Lint
- else
  %span.badge{ class: build_status_category_color(status), title: details }
    %i.fa.me-2{ class: build_status_icon(status) }
    %span.architecture #{architecture} :
    = text
