Class: Decidim::Meetings::HighlightedMeetingsForComponentCell

Inherits:
ViewModel
  • Object
show all
Includes:
CardHelper, ComponentPathHelper
Defined in:
decidim-meetings/app/cells/decidim/meetings/highlighted_meetings_for_component_cell.rb

Overview

This cell renders the highlighted meetings for a given component. It is intended to be used in the ‘participatory_space_highlighted_elements` view hook.

Instance Method Summary collapse

Methods included from CardHelper

#card_for

Methods included from ComponentPathHelper

#can_be_managed?, #main_component_path, #main_component_url, #manage_component_path

Instance Method Details

#showObject



14
15
16
# File 'decidim-meetings/app/cells/decidim/meetings/highlighted_meetings_for_component_cell.rb', line 14

def show
  render unless meetings_count.zero?
end