Class: Decidim::Initiatives::ContentBlocks::HighlightedInitiativesCell

Inherits:
ContentBlocks::HighlightedParticipatorySpacesCell
  • Object
show all
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_pathObject



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_spacesObject



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_scopeObject



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