|
|
|
@ -45,19 +45,19 @@ private
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def supported_housing_current?(path) |
|
|
|
|
path.include?("/supported-housing") && !organisations_current?(path) |
|
|
|
|
path == "/supported-housing" || path.include?("/supported-housing/") |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def organisations_current?(path) |
|
|
|
|
path == "/organisations" || subnav_users_path?(path) || subnav_logs_path?(path) || subnav_details_path?(path) || subnav_supported_housing_path?(path) |
|
|
|
|
path == "/organisations" || path.include?("/organisations/") |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def subnav_supported_housing_path?(path) |
|
|
|
|
path.include?("/organisations") && path.include?("/supported-housing") |
|
|
|
|
path.include?("/organisations") && path.include?("/supported-housing") || path.include?("/supported-housing/") |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def subnav_users_path?(path) |
|
|
|
|
path.include?("/organisations") && path.include?("/users") |
|
|
|
|
path.include?("/organisations") && path.include?("/users") || path.include?("/users/") |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def subnav_logs_path?(path) |
|
|
|
|