Sha256: bfb3dd1cfb2ea5bc495232b42848cd52d5a257d93ce3ef6c09fae0d671ac0dd2

Contents?: true

Size: 334 Bytes

Versions: 14

Compression:

Stored size: 334 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module ContentBlocks
    class StatsCell < Decidim::ViewModel
      def show
        return unless current_organization.show_statistics?

        render
      end

      def stats
        @stats ||= HomeStatsPresenter.new(organization: current_organization)
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
decidim-core-0.23.6 app/cells/decidim/content_blocks/stats_cell.rb
decidim-core-0.23.5 app/cells/decidim/content_blocks/stats_cell.rb
decidim-core-0.23.4 app/cells/decidim/content_blocks/stats_cell.rb
decidim-core-0.23.3 app/cells/decidim/content_blocks/stats_cell.rb
decidim-core-0.23.2 app/cells/decidim/content_blocks/stats_cell.rb
decidim-core-0.23.1 app/cells/decidim/content_blocks/stats_cell.rb
decidim-core-0.23.1.rc1 app/cells/decidim/content_blocks/stats_cell.rb
decidim-core-0.23.0 app/cells/decidim/content_blocks/stats_cell.rb
decidim-core-0.22.0 app/cells/decidim/content_blocks/stats_cell.rb
decidim-core-0.21.0 app/cells/decidim/content_blocks/stats_cell.rb
decidim-core-0.20.1 app/cells/decidim/content_blocks/stats_cell.rb
decidim-core-0.20.0 app/cells/decidim/content_blocks/stats_cell.rb
decidim-core-0.19.1 app/cells/decidim/content_blocks/stats_cell.rb
decidim-core-0.19.0 app/cells/decidim/content_blocks/stats_cell.rb