Sha256: b3c266f801103bf5b2e1fc34b96f1bb4a4d51b72c4c3ba0462b91d42c7974b70

Contents?: true

Size: 324 Bytes

Versions: 20

Compression:

Stored size: 324 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
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
decidim-core-0.24.3 app/cells/decidim/content_blocks/sub_hero_cell.rb
decidim-core-0.23.6 app/cells/decidim/content_blocks/sub_hero_cell.rb
decidim-core-0.24.2 app/cells/decidim/content_blocks/sub_hero_cell.rb
decidim-core-0.23.5 app/cells/decidim/content_blocks/sub_hero_cell.rb
decidim-core-0.24.1 app/cells/decidim/content_blocks/sub_hero_cell.rb
decidim-core-0.24.0 app/cells/decidim/content_blocks/sub_hero_cell.rb
decidim-core-0.24.0.rc2 app/cells/decidim/content_blocks/sub_hero_cell.rb
decidim-core-0.23.4 app/cells/decidim/content_blocks/sub_hero_cell.rb
decidim-core-0.24.0.rc1 app/cells/decidim/content_blocks/sub_hero_cell.rb
decidim-core-0.23.3 app/cells/decidim/content_blocks/sub_hero_cell.rb
decidim-core-0.23.2 app/cells/decidim/content_blocks/sub_hero_cell.rb
decidim-core-0.23.1 app/cells/decidim/content_blocks/sub_hero_cell.rb
decidim-core-0.23.1.rc1 app/cells/decidim/content_blocks/sub_hero_cell.rb
decidim-core-0.23.0 app/cells/decidim/content_blocks/sub_hero_cell.rb
decidim-core-0.22.0 app/cells/decidim/content_blocks/sub_hero_cell.rb
decidim-core-0.21.0 app/cells/decidim/content_blocks/sub_hero_cell.rb
decidim-core-0.20.1 app/cells/decidim/content_blocks/sub_hero_cell.rb
decidim-core-0.20.0 app/cells/decidim/content_blocks/sub_hero_cell.rb
decidim-core-0.19.1 app/cells/decidim/content_blocks/sub_hero_cell.rb
decidim-core-0.19.0 app/cells/decidim/content_blocks/sub_hero_cell.rb