Sha256: f592121068c95cce6a8cb23f761af5dd08458fdfcf0110c07c98c96c67b14645

Contents?: true

Size: 323 Bytes

Versions: 5

Compression:

Stored size: 323 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

5 entries across 5 versions & 1 rubygems

Version Path
decidim-core-0.18.1 app/cells/decidim/content_blocks/sub_hero_cell.rb
decidim-core-0.17.2 app/cells/decidim/content_blocks/sub_hero_cell.rb
decidim-core-0.18.0 app/cells/decidim/content_blocks/sub_hero_cell.rb
decidim-core-0.17.1 app/cells/decidim/content_blocks/sub_hero_cell.rb
decidim-core-0.17.0 app/cells/decidim/content_blocks/sub_hero_cell.rb