You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
480 B
17 lines
480 B
3 years ago
|
module OrganisationHelper
|
||
|
def organisation_header(path, user, current_organisation)
|
||
|
if path == "/organisations"
|
||
|
"Organisations"
|
||
|
elsif user.organisation_id == current_organisation.id
|
||
|
"Your organisation"
|
||
|
else
|
||
|
current_organisation.name
|
||
|
end
|
||
|
end
|
||
|
|
||
|
DISPLAY_PROVIDER_TYPE = { "LA": "Local authority", "PRP": "Private registered provider" }.freeze
|
||
|
def display_provider_type(provider_type)
|
||
|
DISPLAY_PROVIDER_TYPE[provider_type.to_sym]
|
||
|
end
|
||
|
end
|