Class: Decidim::Conferences::ContentBlocks::HighlightedConferencesCell
- Inherits:
-
ViewModel
- Object
- ViewModel
- Decidim::Conferences::ContentBlocks::HighlightedConferencesCell
- Defined in:
- decidim-conferences/app/cells/decidim/conferences/content_blocks/highlighted_conferences_cell.rb
Instance Method Summary collapse
Instance Method Details
#decidim_conferences ⇒ Object
21 22 23 |
# File 'decidim-conferences/app/cells/decidim/conferences/content_blocks/highlighted_conferences_cell.rb', line 21 def decidim_conferences Decidim::Conferences::Engine.routes.url_helpers end |
#highlighted_conferences ⇒ Object
13 14 15 |
# File 'decidim-conferences/app/cells/decidim/conferences/content_blocks/highlighted_conferences_cell.rb', line 13 def highlighted_conferences OrganizationPrioritizedConferences.new(current_organization, current_user) end |
#i18n_scope ⇒ Object
17 18 19 |
# File 'decidim-conferences/app/cells/decidim/conferences/content_blocks/highlighted_conferences_cell.rb', line 17 def i18n_scope "decidim.conferences.pages.home.highlighted_conferences" end |
#show ⇒ Object
9 10 11 |
# File 'decidim-conferences/app/cells/decidim/conferences/content_blocks/highlighted_conferences_cell.rb', line 9 def show render if highlighted_conferences.any? end |