Sha256: eaa315b83db46769c648abbcea8ac825c645513c6c73a97e9941192a564080b0
Contents?: true
Size: 829 Bytes
Versions: 13
Compression:
Stored size: 829 Bytes
Contents
# frozen_string_literal: true module Decidim module ContentBlocks class ParticipatorySpaceMetricsCell < BaseCell def show return if metrics.blank? render end private def metrics; end def scope; end def show_all_path; end def metrics_count Decidim.metrics_registry.filtered(scope:).length end def highlighted_metrics return if metrics.blank? metrics.render_charts Decidim.metrics_registry.filtered(highlight: true, scope:) end def not_highlighted_metrics return if metrics.blank? metrics.render_charts Decidim.metrics_registry.filtered(highlight: false, scope:) end def display_not_highlighted_metrics = false def data { metrics: "" } end end end end
Version data entries
13 entries across 13 versions & 1 rubygems