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.

21 lines
565 B

  1. # frozen_string_literal: true
  2. module InstanceHelper
  3. def site_title
  4. Setting.site_title
  5. end
  6. def site_hostname
  7. @site_hostname ||= Addressable::URI.parse("//#{Rails.configuration.x.local_domain}").display_uri.host
  8. end
  9. def description_for_sign_up
  10. prefix = if @invite.present?
  11. I18n.t('auth.description.prefix_invited_by_user', name: @invite.user.account.username)
  12. else
  13. I18n.t('auth.description.prefix_sign_up')
  14. end
  15. safe_join([prefix, I18n.t('auth.description.suffix')], ' ')
  16. end
  17. end