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

Inherits:
ViewModel
  • Object
show all
Defined in:
decidim-conferences/app/cells/decidim/conferences/content_blocks/highlighted_conferences_cell.rb

Instance Method Summary collapse

Instance Method Details

#decidim_conferencesObject


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_conferencesObject


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_scopeObject


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

#showObject


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