Class: Decidim::ParticipatoryProcesses::ContentBlocks::HighlightedProcessesCell

Inherits:
ContentBlocks::HighlightedParticipatorySpacesCell
  • Object
show all
Defined in:
app/cells/decidim/participatory_processes/content_blocks/highlighted_processes_cell.rb

Instance Method Summary collapse

Instance Method Details

#all_pathObject



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

def all_path
  Decidim::ParticipatoryProcesses::Engine.routes.url_helpers.participatory_processes_path
end

#highlighted_spacesObject Also known as: limited_highlighted_spaces



7
8
9
# File 'app/cells/decidim/participatory_processes/content_blocks/highlighted_processes_cell.rb', line 7

def highlighted_spaces
  @highlighted_spaces ||= promoted_groups + highlighted_processes
end

#i18n_scopeObject



13
14
15
# File 'app/cells/decidim/participatory_processes/content_blocks/highlighted_processes_cell.rb', line 13

def i18n_scope
  "decidim.participatory_processes.pages.home.highlighted_processes"
end

#max_resultsObject



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

def max_results
  model.settings.max_results
end