Sha256: 2403e6a1e0dae4d6bc634cf3396131d71a3e176d0083db48ed3bfef72e321ad2
Contents?: true
Size: 724 Bytes
Versions: 3
Compression:
Stored size: 724 Bytes
Contents
# frozen_string_literal: true module Decidim module ParticipatoryProcesses module ContentBlocks class HeroCell < Decidim::ContentBlocks::ParticipatorySpaceHeroCell include Decidim::ApplicationHelper delegate :active_step, to: :resource def decidim_participatory_processes Decidim::ParticipatoryProcesses::Engine.routes.url_helpers end def cta_text return if active_step.blank? @cta_text ||= translated_attribute(active_step.cta_text).presence end def cta_path return if active_step.blank? @cta_path ||= active_step.cta_path.presence && step_cta_url(resource) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems