Module: Trestle::Auth::TitleHelper

Defined in:
app/helpers/trestle/auth/title_helper.rb

Instance Method Summary collapse

Instance Method Details

#trestle_auth_titleObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'app/helpers/trestle/auth/title_helper.rb', line 4

def trestle_auth_title
  if Trestle.config.auth.
    image_tag(Trestle.config.auth.)
  elsif Trestle.config.
    image_tag(Trestle.config.)
  elsif Trestle.config.site_logo_small
    safe_join([
      image_tag(Trestle.config.site_logo_small, alt: "", class: ""),
      (:span, Trestle.config.site_title)
    ], "\n")
  else
    Trestle.config.site_title
  end
end