From 9132acb65766d673d15532df4ec81cb2f62044c6 Mon Sep 17 00:00:00 2001 From: JG Date: Fri, 10 Jun 2022 11:06:15 +0100 Subject: [PATCH] correct view --- app/views/organisations/schemes.html.erb | 8 +++++++- app/views/schemes/index.html.erb | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/views/organisations/schemes.html.erb b/app/views/organisations/schemes.html.erb index b96e7bdc3..a727a8118 100644 --- a/app/views/organisations/schemes.html.erb +++ b/app/views/organisations/schemes.html.erb @@ -3,7 +3,13 @@ <% content_for :title, title %> -<%= render partial: "organisations/headings", locals: current_user.support? ? { main: "Supported housing services", sub: nil } : { main: "Supported housing services", sub: current_user.organisation.name } %> +<%= render partial: "organisations/headings", locals: current_user.support? ? { main: @organisation.name, sub: nil } : { main: "Supported housing services", sub: current_user.organisation.name } %> + +<% if current_user.support? %> + <%= render SubNavigationComponent.new( + items: secondary_items(request.path, @organisation.id), + ) %> +<% end %>

Supported housing services

diff --git a/app/views/schemes/index.html.erb b/app/views/schemes/index.html.erb index 9bf12634f..b96e7bdc3 100644 --- a/app/views/schemes/index.html.erb +++ b/app/views/schemes/index.html.erb @@ -11,6 +11,6 @@
-<%= render partial: "scheme_list", locals: { schemes: @schemes, title:, pagy: @pagy, searched: @searched, item_label:, total_count: @total_count } %> +<%= render partial: "schemes/scheme_list", locals: { schemes: @schemes, title:, pagy: @pagy, searched: @searched, item_label:, total_count: @total_count } %> <%== render partial: "pagy/nav", locals: { pagy: @pagy, item_name: "schemes" } %>