Sha256: 9c9934c1902ea9fb1919e2e5b44debf445d3e1d8b5e0833ce117ff980cd466cf

Contents?: true

Size: 502 Bytes

Versions: 12

Compression:

Stored size: 502 Bytes

Contents

module Lipsiadmin
  module View
    module Helpers
      module FrontendHelper
        # Set the title of the page and append at the end the name of the project
        # Usefull for google & c.
        def title(text)
          content_for(:title) { text + " - #{AppConfig.project}" }
        end
        
        # Set the meta description of the page
        # Usefull for google & c.
        def description(text)
          content_for(:description) { text }
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
lipsiadmin-3.1 lib/view/helpers/frontend_helper.rb
lipsiadmin-3.2 lib/view/helpers/frontend_helper.rb
lipsiadmin-3.3.1 lib/view/helpers/frontend_helper.rb
lipsiadmin-3.3.3 lib/view/helpers/frontend_helper.rb
lipsiadmin-3.3.2 lib/view/helpers/frontend_helper.rb
lipsiadmin-3.3.4 lib/view/helpers/frontend_helper.rb
lipsiadmin-3.3 lib/view/helpers/frontend_helper.rb
lipsiadmin-3.4.0 lib/view/helpers/frontend_helper.rb
lipsiadmin-3.4.1 lib/view/helpers/frontend_helper.rb
lipsiadmin-3.4.2 lib/view/helpers/frontend_helper.rb
lipsiadmin-4.0.0 lib/view/helpers/frontend_helper.rb
lipsiadmin-4.1.0 lib/view/helpers/frontend_helper.rb