Skip to content

Commit

Permalink
Show mid cycle header if provider has mid cycle reports
Browse files Browse the repository at this point in the history
  • Loading branch information
inulty-dfe committed May 14, 2024
1 parent 33847a0 commit cc57bf2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/views/provider_interface/reports/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
</ul>
<% end %>
<% else %>
<% if @providers.any? { mid_cycle_report_present_for?(_1) } %>
<h2 class="govuk-heading-m">
Mid-cycle recruitment performance report
</h2>
<% end %>
<% @providers.select { mid_cycle_report_present_for?(_1) }.each do |provider| %>
<h3 class="govuk-heading-s"><%= provider.name %></h3>
Expand Down

0 comments on commit cc57bf2

Please sign in to comment.