Class: Decidim::Conferences::ContentBlocks::HighlightedConferencesCell
- Inherits:
-
Decidim::ContentBlocks::HighlightedParticipatorySpacesCell
- Object
- Decidim::ContentBlocks::HighlightedParticipatorySpacesCell
- Decidim::Conferences::ContentBlocks::HighlightedConferencesCell
- Defined in:
- app/cells/decidim/conferences/content_blocks/highlighted_conferences_cell.rb
Instance Method Summary collapse
Instance Method Details
#all_path ⇒ Object
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_spaces ⇒ Object
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_scope ⇒ Object
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_results ⇒ Object
23 24 25 |
# File 'app/cells/decidim/conferences/content_blocks/highlighted_conferences_cell.rb', line 23 def max_results model.settings.max_results end |