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.
12 lines
283 B
12 lines
283 B
2 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
|
||
|
end
|