Class: Decidim::Meetings::MeetingSCell

Inherits:
MeetingMCell show all
Defined in:
decidim-meetings/app/cells/decidim/meetings/meeting_s_cell.rb

Overview

This cell renders the Small (:s) meeting card for an given instance of a Meeting

Direct Known Subclasses

MeetingHighlightedListItemCell

Instance Method Summary collapse

Methods inherited from MeetingMCell

#address, #badge, #date, #description, #has_authors?, #has_badge?, #render_authorship, #state_classes, #title

Methods included from MeetingCellsHelper

#description

Methods included from TranslatableAttributes

#default_locale?

Methods inherited from CardMCell

#show

Methods included from CardHelper

#card_for

Instance Method Details

#meeting_pathObject



8
9
10
# File 'decidim-meetings/app/cells/decidim/meetings/meeting_s_cell.rb', line 8

def meeting_path
  resource_locator(model).path
end

#participatory_space_class_nameObject



12
13
14
# File 'decidim-meetings/app/cells/decidim/meetings/meeting_s_cell.rb', line 12

def participatory_space_class_name
  model.component.participatory_space.class.model_name.human
end

#participatory_space_pathObject



20
21
22
# File 'decidim-meetings/app/cells/decidim/meetings/meeting_s_cell.rb', line 20

def participatory_space_path
  resource_locator(model.component.participatory_space).path
end

#participatory_space_titleObject



16
17
18
# File 'decidim-meetings/app/cells/decidim/meetings/meeting_s_cell.rb', line 16

def participatory_space_title
  translated_attribute model.component.participatory_space.title
end