diff --git a/app/helpers/navigation_items_helper.rb b/app/helpers/navigation_items_helper.rb index 13462eb2b..5597b2e0f 100644 --- a/app/helpers/navigation_items_helper.rb +++ b/app/helpers/navigation_items_helper.rb @@ -12,11 +12,11 @@ module NavigationItemsHelper ].compact else [ - NavigationItem.new("Lettings logs", lettings_logs_path, lettings_logs_current?(path)), - NavigationItem.new("Sales logs", sales_logs_path, sales_logs_current?(path)), - (NavigationItem.new("Schemes", schemes_path, non_support_supported_housing_schemes_current?(path)) if current_user.organisation.holds_own_stock? || current_user.organisation.stock_owners.present?), + NavigationItem.new("Lettings logs", lettings_logs_organisation_path(current_user.organisation), lettings_logs_current?(path)), + NavigationItem.new("Sales logs", sales_logs_organisation_path(current_user.organisation), sales_logs_current?(path)), + (NavigationItem.new("Schemes", schemes_organisation_path(current_user.organisation), non_support_supported_housing_schemes_current?(path)) if current_user.organisation.holds_own_stock? || current_user.organisation.stock_owners.present?), NavigationItem.new("Users", users_organisation_path(current_user.organisation), subnav_users_path?(path)), - NavigationItem.new("About your organisation", organisation_path(current_user.organisation.id), subnav_details_path?(path)), + NavigationItem.new("About your organisation", details_organisation_path(current_user.organisation.id), subnav_details_path?(path)), NavigationItem.new("Stock owners", stock_owners_organisation_path(current_user.organisation), stock_owners_path?(path)), NavigationItem.new("Managing agents", managing_agents_organisation_path(current_user.organisation), managing_agents_path?(path)), ].compact @@ -29,16 +29,16 @@ module NavigationItemsHelper NavigationItem.new("Sales logs", sales_logs_organisation_path(current_organisation_id), subnav_sales_logs_path?(path)), (NavigationItem.new("Schemes", schemes_organisation_path(current_organisation_id), subnav_supported_housing_schemes_path?(path)) if current_user.organisation.holds_own_stock? || current_user.organisation.stock_owners.present?), NavigationItem.new("Users", users_organisation_path(current_organisation_id), subnav_users_path?(path)), - NavigationItem.new("About this organisation", organisation_path(current_organisation_id), subnav_details_path?(path)), + NavigationItem.new("About this organisation", details_organisation_path(current_organisation_id), subnav_details_path?(path)), NavigationItem.new("Stock owners", stock_owners_organisation_path(current_organisation_id), stock_owners_path?(path)), NavigationItem.new("Managing agents", managing_agents_organisation_path(current_organisation_id), managing_agents_path?(path)), ].compact end - def scheme_items(path, current_scheme_id, title) + def scheme_items(path, current_scheme_id) [ NavigationItem.new("Scheme", scheme_path(current_scheme_id), !path.include?("locations")), - NavigationItem.new(title, scheme_locations_path(current_scheme_id), path.include?("locations")), + NavigationItem.new("Locations", scheme_locations_path(current_scheme_id), path.include?("locations")), ] end diff --git a/app/views/locations/index.html.erb b/app/views/locations/index.html.erb index ae35d55f6..b88ca74e7 100644 --- a/app/views/locations/index.html.erb +++ b/app/views/locations/index.html.erb @@ -11,7 +11,7 @@ <%= render partial: "organisations/headings", locals: { main: @scheme.service_name, sub: nil } %>