Sha256: 5ed1ce6dbb7760edb30b589af48045c642574dfda3670d81d37d1b6344964d5e
Contents?: true
Size: 724 Bytes
Versions: 6
Compression:
Stored size: 724 Bytes
Contents
# frozen_string_literal: true module Decidim module Accountability # Helpers needed to render the navigation breadcrumbs in results. # module BreadcrumbHelper def stats_calculator @stats_calculator ||= ResultStatsCalculator.new(result) end def current_scope params[:filter][:scope_id] if params[:filter] end def progress_calculator(scope_id, category_id) Decidim::Accountability::ResultsCalculator.new(current_feature, scope_id, category_id).progress end def category current_participatory_space.categories.find(params[:filter][:category_id]) if params[:filter] && params[:filter][:category_id].present? end end end end
Version data entries
6 entries across 6 versions & 1 rubygems