houdini/app/helpers/profiles_helper.rb
2019-08-02 19:07:29 +02:00

12 lines
285 B
Ruby
Executable file

# frozen_string_literal: true
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
module ProfilesHelper
def get_shortened_name(name)
if name
name.length > 18 ? name[0..18] + '...' : name
else
'Your Account'
end
end
end