Sha256: fb907e8463fe06c41d1c10de492b5ea74415b1829d458596610e155437238585

Contents?: true

Size: 552 Bytes

Versions: 12

Compression:

Stored size: 552 Bytes

Contents

module Blogelator
  module PostsHelper
    include LocalTimeHelper
    
    def body_class
      @body_class ||= "default"
      body_class = "blogelator"
      body_class += " " + controller.controller_name
      body_class += " " + controller.action_name
      body_class += " " + @body_class
      body_class
    end
    
    def page_title
      page = @title
      if page
        "#{page} • #{site_title}"
      else
        site_title
      end
    end
    
    def site_title
      Blogelator.site_name || "Blogelator"
    end
    
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
blogelator-0.2.5 app/helpers/blogelator/posts_helper.rb
blogelator-0.2.4 app/helpers/blogelator/posts_helper.rb
blogelator-0.2.3 app/helpers/blogelator/posts_helper.rb
blogelator-0.2.2 app/helpers/blogelator/posts_helper.rb
blogelator-0.2.1 app/helpers/blogelator/posts_helper.rb
blogelator-0.1.6 app/helpers/blogelator/posts_helper.rb
blogelator-0.1.5 app/helpers/blogelator/posts_helper.rb
blogelator-0.1.4 app/helpers/blogelator/posts_helper.rb
blogelator-0.1.3 app/helpers/blogelator/posts_helper.rb
blogelator-0.1.2 app/helpers/blogelator/posts_helper.rb
blogelator-0.1.1 app/helpers/blogelator/posts_helper.rb
blogelator-0.1.0 app/helpers/blogelator/posts_helper.rb