Sha256: c2cfe2ef017bdae84f7193ba00417efe0bf5f4627eedc4505a6ae41acad413fa

Contents?: true

Size: 378 Bytes

Versions: 9

Compression:

Stored size: 378 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module ContentBlocks
    class SubHeroCell < Decidim::ViewModel
      include Decidim::IconHelper
      include Decidim::SanitizeHelper

      def show
        return if translated_attribute(current_organization.description).blank?
        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/sub_hero_cell.rb
decidim-core-0.16.0 app/cells/decidim/content_blocks/sub_hero_cell.rb
decidim-core-0.15.2 app/cells/decidim/content_blocks/sub_hero_cell.rb
decidim-core-0.15.1 app/cells/decidim/content_blocks/sub_hero_cell.rb
decidim-core-0.15.0 app/cells/decidim/content_blocks/sub_hero_cell.rb
decidim-core-0.14.4 app/cells/decidim/content_blocks/sub_hero_cell.rb
decidim-core-0.14.3 app/cells/decidim/content_blocks/sub_hero_cell.rb
decidim-core-0.14.2 app/cells/decidim/content_blocks/sub_hero_cell.rb
decidim-core-0.14.1 app/cells/decidim/content_blocks/sub_hero_cell.rb