Class: Decidim::Meetings::MeetingMCell
- Inherits:
-
CardMCell
- Object
- CardMCell
- Decidim::Meetings::MeetingMCell
show all
- Includes:
- MeetingCellsHelper
- Defined in:
- app/cells/decidim/meetings/meeting_m_cell.rb
Overview
This cell renders the Medium (:m) meeting card for an given instance of a Meeting
Instance Method Summary
collapse
#description
#author_presenter_for, #calculate_start_and_end_time_of_agenda_items, #current_user_groups?, #display_duration_agenda_items, #meeting_description, #meeting_type_badge_css_class, #registration_code_help_text, #validation_state_for
Instance Method Details
#address ⇒ Object
22
23
24
|
# File 'app/cells/decidim/meetings/meeting_m_cell.rb', line 22
def address
decidim_html_escape(render)
end
|
#date ⇒ Object
18
19
20
|
# File 'app/cells/decidim/meetings/meeting_m_cell.rb', line 18
def date
render
end
|
#has_authors? ⇒ Boolean
10
11
12
|
# File 'app/cells/decidim/meetings/meeting_m_cell.rb', line 10
def has_authors?
true
end
|
#render_authorship ⇒ Object
14
15
16
|
# File 'app/cells/decidim/meetings/meeting_m_cell.rb', line 14
def render_authorship
cell "decidim/author", author_presenter_for(model.normalized_author)
end
|
#title ⇒ Object
26
27
28
|
# File 'app/cells/decidim/meetings/meeting_m_cell.rb', line 26
def title
present(model).title
end
|