Sha256: 7a82f3005dd2b4278b48eeea390233e3057ae5e3b4f3b1e3c857d8eeba507f26

Contents?: true

Size: 359 Bytes

Versions: 9

Compression:

Stored size: 359 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module ContentBlocks
    class HighlightedContentBannerCell < Decidim::ViewModel
      include Decidim::SanitizeHelper

      def show
        return unless current_organization.highlighted_content_banner_enabled
        render
      end

      delegate :current_organization, to: :controller
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
decidim-core-0.16.1 app/cells/decidim/content_blocks/highlighted_content_banner_cell.rb
decidim-core-0.16.0 app/cells/decidim/content_blocks/highlighted_content_banner_cell.rb
decidim-core-0.15.2 app/cells/decidim/content_blocks/highlighted_content_banner_cell.rb
decidim-core-0.15.1 app/cells/decidim/content_blocks/highlighted_content_banner_cell.rb
decidim-core-0.15.0 app/cells/decidim/content_blocks/highlighted_content_banner_cell.rb
decidim-core-0.14.4 app/cells/decidim/content_blocks/highlighted_content_banner_cell.rb
decidim-core-0.14.3 app/cells/decidim/content_blocks/highlighted_content_banner_cell.rb
decidim-core-0.14.2 app/cells/decidim/content_blocks/highlighted_content_banner_cell.rb
decidim-core-0.14.1 app/cells/decidim/content_blocks/highlighted_content_banner_cell.rb