Sha256: 384475a05a9b31c8f4acef6ed79f658d98abecedf2a8bab4a7224aae79330758

Contents?: true

Size: 464 Bytes

Versions: 9

Compression:

Stored size: 464 Bytes

Contents

module Refinery
  module Pages
    # A type of SectionPresenter which knows how to render a section which displays
    # a title. These are much like normal sections except they are wrapped in
    # a h1 tag rather than a div.
    class TitleSectionPresenter < SectionPresenter
      include ActionView::Helpers::SanitizeHelper

    private

      def wrap_content_in_tag(content)
        content_tag(:h1, sanitize(content), :id => id)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
refinerycms-pages-4.0.3 app/presenters/refinery/pages/title_section_presenter.rb
refinerycms-pages-4.0.2 app/presenters/refinery/pages/title_section_presenter.rb
refinerycms-pages-4.0.1 app/presenters/refinery/pages/title_section_presenter.rb
refinerycms-pages-3.0.6 app/presenters/refinery/pages/title_section_presenter.rb
refinerycms-pages-4.0.0 app/presenters/refinery/pages/title_section_presenter.rb
refinerycms-pages-3.0.5 app/presenters/refinery/pages/title_section_presenter.rb
refinerycms-pages-3.0.4 app/presenters/refinery/pages/title_section_presenter.rb
refinerycms-pages-3.0.3 app/presenters/refinery/pages/title_section_presenter.rb
refinerycms-pages-3.0.2 app/presenters/refinery/pages/title_section_presenter.rb