Class: Decidim::ParticipatoryProcesses::ContentBlocks::HighlightedProcessesCell
- Inherits:
-
ContentBlocks::HighlightedParticipatorySpacesCell
- Object
- ContentBlocks::HighlightedParticipatorySpacesCell
- Decidim::ParticipatoryProcesses::ContentBlocks::HighlightedProcessesCell
- Defined in:
- app/cells/decidim/participatory_processes/content_blocks/highlighted_processes_cell.rb
Instance Method Summary collapse
- #all_path ⇒ Object
- #highlighted_spaces ⇒ Object (also: #limited_highlighted_spaces)
- #i18n_scope ⇒ Object
- #max_results ⇒ Object
Instance Method Details
#all_path ⇒ Object
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_spaces ⇒ Object 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_scope ⇒ Object
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_results ⇒ Object
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 |