Class: Decidim::ParticipatoryProcesses::ContentBlocks::HeroCell

Inherits:
ContentBlocks::ParticipatorySpaceHeroCell
  • Object
show all
Includes:
ApplicationHelper
Defined in:
app/cells/decidim/participatory_processes/content_blocks/hero_cell.rb

Instance Method Summary collapse

Instance Method Details

#cta_pathObject



21
22
23
24
25
# File 'app/cells/decidim/participatory_processes/content_blocks/hero_cell.rb', line 21

def cta_path
  return if active_step.blank?

  @cta_path ||= active_step.cta_path.presence && step_cta_url(resource)
end

#cta_textObject



15
16
17
18
19
# File 'app/cells/decidim/participatory_processes/content_blocks/hero_cell.rb', line 15

def cta_text
  return if active_step.blank?

  @cta_text ||= translated_attribute(active_step.cta_text).presence
end

#decidim_participatory_processesObject



11
12
13
# File 'app/cells/decidim/participatory_processes/content_blocks/hero_cell.rb', line 11

def decidim_participatory_processes
  Decidim::ParticipatoryProcesses::Engine.routes.url_helpers
end