Class: Decidim::Meetings::MeetingSCell

Inherits:
MeetingMCell
  • Object
show all
Defined in:
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 MeetingsHelper

#author_presenter_for, #calculate_start_and_end_time_of_agenda_items, #current_user_groups?, #display_duration_agenda_items, #google_calendar_event_url, #meeting_description, #meeting_type_badge_css_class, #registration_code_help_text, #validation_state_for

Methods included from ApplicationHelper

#activity_filter_values, #filter_date_values, #filter_origin_values, #filter_type_values, #iframe_embed_or_live_event_page?, #online_or_hybrid_meeting?, #prevent_timeout_seconds, #render_meeting_body, #safe_content?

Methods included from MapHelper

#meetings_data_for_map

Instance Method Details

#meeting_pathObject



10
11
12
# File 'app/cells/decidim/meetings/meeting_s_cell.rb', line 10

def meeting_path
  resource_locator(model).path
end

#participatory_space_class_nameObject



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

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

#participatory_space_pathObject



22
23
24
# File 'app/cells/decidim/meetings/meeting_s_cell.rb', line 22

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

#participatory_space_titleObject



18
19
20
# File 'app/cells/decidim/meetings/meeting_s_cell.rb', line 18

def participatory_space_title
  translated_attribute model.component.participatory_space.title
end

#presenterObject



26
27
28
# File 'app/cells/decidim/meetings/meeting_s_cell.rb', line 26

def presenter
  @presenter ||= Decidim::Meetings::MeetingPresenter.new(model)
end