Sha256: 1c8ce262929b47f5a90931cc36169deb45b74552008751c179d7474885907ffc

Contents?: true

Size: 343 Bytes

Versions: 14

Compression:

Stored size: 343 Bytes

Contents

# frozen_string_literal: true

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

        render
      end

      def metrics
        @metrics ||= MetricChartsPresenter.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/metrics_cell.rb
decidim-core-0.23.5 app/cells/decidim/content_blocks/metrics_cell.rb
decidim-core-0.23.4 app/cells/decidim/content_blocks/metrics_cell.rb
decidim-core-0.23.3 app/cells/decidim/content_blocks/metrics_cell.rb
decidim-core-0.23.2 app/cells/decidim/content_blocks/metrics_cell.rb
decidim-core-0.23.1 app/cells/decidim/content_blocks/metrics_cell.rb
decidim-core-0.23.1.rc1 app/cells/decidim/content_blocks/metrics_cell.rb
decidim-core-0.23.0 app/cells/decidim/content_blocks/metrics_cell.rb
decidim-core-0.22.0 app/cells/decidim/content_blocks/metrics_cell.rb
decidim-core-0.21.0 app/cells/decidim/content_blocks/metrics_cell.rb
decidim-core-0.20.1 app/cells/decidim/content_blocks/metrics_cell.rb
decidim-core-0.20.0 app/cells/decidim/content_blocks/metrics_cell.rb
decidim-core-0.19.1 app/cells/decidim/content_blocks/metrics_cell.rb
decidim-core-0.19.0 app/cells/decidim/content_blocks/metrics_cell.rb