Sha256: 19335fba87e2612e4a517256ccbc1582aa8ebe602f703f2f54ccf4782a14423d

Contents?: true

Size: 556 Bytes

Versions: 9

Compression:

Stored size: 556 Bytes

Contents

module Trestle
  module Auth
    module TitleHelper
      def trestle_auth_title
        if Trestle.config.auth.logo
          image_tag(Trestle.config.auth.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
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
trestle-auth-0.5.0 app/helpers/trestle/auth/title_helper.rb
trestle-auth-0.5.0.pre2 app/helpers/trestle/auth/title_helper.rb
trestle-auth-0.5.0.pre app/helpers/trestle/auth/title_helper.rb
trestle-auth-0.4.4 app/helpers/trestle/auth/title_helper.rb
trestle-auth-0.4.3 app/helpers/trestle/auth/title_helper.rb
trestle-auth-0.4.2 app/helpers/trestle/auth/title_helper.rb
trestle-auth-0.4.1 app/helpers/trestle/auth/title_helper.rb
trestle-auth-0.4.0 app/helpers/trestle/auth/title_helper.rb
trestle-auth-0.3.0 app/helpers/trestle/auth/title_helper.rb