diff --git a/app/views/matches/_current_step_info.haml b/app/views/matches/_current_step_info.haml index 8b111c73c..635013eff 100644 --- a/app/views/matches/_current_step_info.haml +++ b/app/views/matches/_current_step_info.haml @@ -1,21 +1,21 @@ .d-flex.mb-5.align-items-end.flex-wrap - - if @match.current_decision.present? - .d-flex.flex-column - .summary-readout.mb-3 - .summary-readout--tile - %h3.h4 Current Step - %h1.h2 - -if !@match.overall_status[:name] == "In Progress" - = match.overall_status[:name] - -else - = @match.current_decision.step_name - .summary-readout--tile - %h3.h4 Assigned To - %h1.h2 - = @match.current_decision.try(:actor_type) || 'N/A' - = render 'match_list_base/current_step', match: @match - - else + - unless @match.current_decision.present? = render 'matches/restrictions_on_reopening' +.d-flex.mb-5.align-items-end.flex-wrap + .d-flex.flex-column + .summary-readout.mb-3 + .summary-readout--tile + %h3.h4 Current Step + %h1.h2 + -if @match.overall_status[:name] != "In Progress" + = @match.overall_status[:name] + -else + = @match.current_decision.step_name + .summary-readout--tile + %h3.h4 Assigned To + %h1.h2 + = @match.current_decision&.try(:actor_type) || 'N/A' + = render 'match_list_base/current_step', match: @match %div.ml-auto - if @match.can_create_overall_note?(access_context.current_contact) .btn-label.btn-label__primary