Skip to content

Commit

Permalink
Only show weekly performance provider name if multiple providers
Browse files Browse the repository at this point in the history
  • Loading branch information
inulty-dfe committed May 14, 2024
1 parent a292728 commit 33847a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/views/provider_interface/reports/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
<% end %>
<% @providers.select { _1.performance_reports.any? }.each do |provider| %>
<h3 class="govuk-heading-s"><%= provider.name %></h3>
<% if @providers.many? %>
<h3 class="govuk-heading-s"><%= provider.name %></h3>
<% end %>
<% report = provider.performance_reports.last %>
<ul class="govuk-list govuk-list--spaced">
<li><%= govuk_link_to("Weekly report for week ending #{report.reporting_date.to_fs(:govuk_date)}", provider_interface_reports_provider_recruitment_performance_report_path(provider.id)) %></li>
Expand Down

0 comments on commit 33847a0

Please sign in to comment.