Sha256: c7f32d7e59e7ef0c338817a35f275cd811e8adf47daa30c80e4216daf093eb73

Contents?: true

Size: 612 Bytes

Versions: 13

Compression:

Stored size: 612 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module ParticipatoryProcesses
    module ContentBlocks
      class MetricsCell < Decidim::ContentBlocks::ParticipatorySpaceMetricsCell
        include ParticipatorySpaceContentBlocksHelper

        private

        def metrics
          @metrics ||= ParticipatoryProcessMetricChartsPresenter.new(participatory_process: resource)
        end

        def scope
          "participatory_process"
        end

        def show_all_path
          decidim_participatory_processes.all_metrics_participatory_process_path(resource)
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

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