Sha256: a20568a982c03091ebd40c271f1ff14ecce7b919de6f1dc54e144146cdca05e5

Contents?: true

Size: 393 Bytes

Versions: 13

Compression:

Stored size: 393 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module ContentBlocks
    class ParticipatorySpaceAnnouncementCell < BaseCell
      delegate :announcement, to: :resource

      def show
        return if announcement_cell.blank_content?

        render
      end

      def announcement_cell
        @announcement_cell ||= cell("decidim/announcement", announcement)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-core-0.29.1 app/cells/decidim/content_blocks/participatory_space_announcement_cell.rb
decidim-core-0.28.4 app/cells/decidim/content_blocks/participatory_space_announcement_cell.rb
decidim-core-0.29.0 app/cells/decidim/content_blocks/participatory_space_announcement_cell.rb
decidim-core-0.28.3 app/cells/decidim/content_blocks/participatory_space_announcement_cell.rb
decidim-core-0.29.0.rc4 app/cells/decidim/content_blocks/participatory_space_announcement_cell.rb
decidim-core-0.29.0.rc3 app/cells/decidim/content_blocks/participatory_space_announcement_cell.rb
decidim-core-0.29.0.rc2 app/cells/decidim/content_blocks/participatory_space_announcement_cell.rb
decidim-core-0.29.0.rc1 app/cells/decidim/content_blocks/participatory_space_announcement_cell.rb
decidim-core-0.28.2 app/cells/decidim/content_blocks/participatory_space_announcement_cell.rb
decidim-core-0.28.1 app/cells/decidim/content_blocks/participatory_space_announcement_cell.rb
decidim-core-0.28.0 app/cells/decidim/content_blocks/participatory_space_announcement_cell.rb
decidim-core-0.28.0.rc5 app/cells/decidim/content_blocks/participatory_space_announcement_cell.rb
decidim-core-0.28.0.rc4 app/cells/decidim/content_blocks/participatory_space_announcement_cell.rb