Module: Trestle::Omniauth::TitleHelper
- Defined in:
- app/helpers/trestle/omniauth/title_helper.rb
Instance Method Summary collapse
Instance Method Details
#trestle_omniauth_title ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/helpers/trestle/omniauth/title_helper.rb', line 4 def trestle_omniauth_title if Trestle.config.omniauth.logo image_tag(Trestle.config.omniauth.logo) elsif Trestle.config.site_logo image_tag(Trestle.config.site_logo) elsif Trestle.config.site_logo_small safe_join([ image_tag(Trestle.config.site_logo_small, alt: "", class: ""), content_tag(:span, Trestle.config.site_title), ], "\n") else Trestle.config.site_title end end |