diff --git a/app/helpers/navigation_items_helper.rb b/app/helpers/navigation_items_helper.rb index 369428053..a463389d6 100644 --- a/app/helpers/navigation_items_helper.rb +++ b/app/helpers/navigation_items_helper.rb @@ -34,6 +34,13 @@ module NavigationItemsHelper ] end + def scheme_items(path, current_scheme_id) + [ + NavigationItem.new("Scheme", "/supported-housing/#{current_scheme_id}", true), + NavigationItem.new("Locations", "/supported-housing/#{current_scheme_id}/locations", false), + ] + end + private def logs_current?(path) diff --git a/app/views/schemes/show.html.erb b/app/views/schemes/show.html.erb index bb883d0e9..2e7ca22d1 100644 --- a/app/views/schemes/show.html.erb +++ b/app/views/schemes/show.html.erb @@ -3,6 +3,10 @@ <%= render partial: "organisations/headings", locals: { main: @scheme.service_name, sub: nil } %> +<%= render SubNavigationComponent.new( + items: scheme_items(request.path, @scheme.id), +) %> +