- if can_handle_request || (can_add_reviews && my_open_reviews.any?)
  .card.mb-3#handle-request
    .card-header.p-0
      %ul.nav.nav-tabs.disable-link-generation{ role: 'tablist' }
        - if can_handle_request
          %li.nav-item
            %a.nav-link.text-nowrap.active{ href: '#decision', data: { 'bs-toggle': 'tab' }, role: 'tab' }
              My decision
        - if can_add_reviews
          - my_open_reviews.each_with_index do |review, index|
            %li.nav-item
              %a.nav-link.text-nowrap{ href: "#review-#{index}", data: { 'bs-toggle': 'tab' }, role: 'tab',
                  class: ('active' if index.zero? && !can_handle_request) }
                Review for
                - if review.by_package
                  #{review.by_project}/#{review.by_package}
                - else
                  = review.by_user || review.by_group || review.by_project
    .card-body
      - if can_handle_request && show_project_maintainer_hint
        .alert.alert-warning
          You are a <strong>project maintainer</strong> but not a <strong>package maintainer</strong>. This package
          has <strong>#{pluralize(package_maintainers.size, 'package maintainer')}</strong> assigned. Please keep
          in mind that also package maintainers would like to review this request.
      .tab-content
        - if can_handle_request
          .tab-pane.fade.show.active{ id: 'decision' }
            = render('decision_tab', request_number: bs_request.number, request_creator: bs_request.creator,
                       is_target_maintainer: is_target_maintainer, state: bs_request.state.to_s,
                       is_author: is_author, single_action_request: actions.count == 1, action: actions.first)
        - if can_add_reviews
          - my_open_reviews.each_with_index do |review, index|
            .tab-pane.fade.show{ id: "review-#{index}", class: ('active' if index.zero? && !can_handle_request) }
              = render('review_tab', review: review, bs_request: bs_request)
