diff --git a/app/views/schemes/show.html.erb b/app/views/schemes/show.html.erb index 2e7ca22d1..99d677999 100644 --- a/app/views/schemes/show.html.erb +++ b/app/views/schemes/show.html.erb @@ -3,8 +3,9 @@ <%= render partial: "organisations/headings", locals: { main: @scheme.service_name, sub: nil } %> + <%= render SubNavigationComponent.new( - items: scheme_items(request.path, @scheme.id), + items: scheme_items(request.path, @scheme.id, @scheme.locations.count), ) %>
@@ -19,3 +20,5 @@ <% end %>
+ +<%= govuk_back_link(href: "#{request.referrer}")%> diff --git a/spec/features/schemes_spec.rb b/spec/features/schemes_spec.rb index a09dfe291..18f174890 100644 --- a/spec/features/schemes_spec.rb +++ b/spec/features/schemes_spec.rb @@ -130,7 +130,7 @@ RSpec.describe "Supported housing scheme Features" do end it "shows service and locations tab" do - expect(page).to have_link("Service") + expect(page).to have_link("Scheme") expect(page).to have_link("#{schemes.count} locations") end end