Class: Decidim::Conferences::ContentBlocks::HighlightedConferencesCell

Inherits:
Decidim::ContentBlocks::HighlightedParticipatorySpacesCell
  • Object
show all
Defined in:
app/cells/decidim/conferences/content_blocks/highlighted_conferences_cell.rb

Instance Method Summary collapse

Instance Method Details

#all_pathObject



19
20
21
# File 'app/cells/decidim/conferences/content_blocks/highlighted_conferences_cell.rb', line 19

def all_path
  Decidim::Conferences::Engine.routes.url_helpers.conferences_path
end

#highlighted_spacesObject



7
8
9
10
11
12
13
# File 'app/cells/decidim/conferences/content_blocks/highlighted_conferences_cell.rb', line 7

def highlighted_spaces
  @highlighted_spaces ||= OrganizationPrioritizedConferences
                          .new(current_organization, current_user)
                          .query
                          .with_attached_hero_image
                          .includes([:organization])
end

#i18n_scopeObject



15
16
17
# File 'app/cells/decidim/conferences/content_blocks/highlighted_conferences_cell.rb', line 15

def i18n_scope
  "decidim.conferences.pages.home.highlighted_conferences"
end

#max_resultsObject



23
24
25
# File 'app/cells/decidim/conferences/content_blocks/highlighted_conferences_cell.rb', line 23

def max_results
  model.settings.max_results
end