Class: Decidim::Initiatives::ContentBlocks::HighlightedInitiativesCell
- Inherits:
-
ContentBlocks::HighlightedParticipatorySpacesCell
- Object
- ContentBlocks::HighlightedParticipatorySpacesCell
- Decidim::Initiatives::ContentBlocks::HighlightedInitiativesCell
- Defined in:
- app/cells/decidim/initiatives/content_blocks/highlighted_initiatives_cell.rb
Constant Summary collapse
- BLOCK_ID =
"highlighted-initiatives"
Instance Method Summary collapse
Instance Method Details
#all_path ⇒ Object
21 22 23 |
# File 'app/cells/decidim/initiatives/content_blocks/highlighted_initiatives_cell.rb', line 21 def all_path Decidim::Initiatives::Engine.routes.url_helpers.initiatives_path end |
#highlighted_spaces ⇒ Object
11 12 13 14 15 |
# File 'app/cells/decidim/initiatives/content_blocks/highlighted_initiatives_cell.rb', line 11 def highlighted_spaces @highlighted_spaces ||= OrganizationPrioritizedInitiatives .new(current_organization, order) .query end |
#i18n_scope ⇒ Object
17 18 19 |
# File 'app/cells/decidim/initiatives/content_blocks/highlighted_initiatives_cell.rb', line 17 def i18n_scope "decidim.initiatives.pages.home.highlighted_initiatives" end |