Class: Decidim::Meetings::MeetingsMapCell

Inherits:
MeetingMCell
  • Object
show all
Includes:
Decidim::MapHelper, MapHelper
Defined in:
app/cells/decidim/meetings/meetings_map_cell.rb

Instance Method Summary collapse

Methods included from MapHelper

#meetings_data_for_map

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?

Instance Method Details

#geocoded_meetingsObject



17
18
19
# File 'app/cells/decidim/meetings/meetings_map_cell.rb', line 17

def geocoded_meetings
  @geocoded_meetings ||= meetings.select(&:geocoded_and_valid?)
end

#meetingsObject



21
22
23
# File 'app/cells/decidim/meetings/meetings_map_cell.rb', line 21

def meetings
  model
end

#showObject



11
12
13
14
15
# File 'app/cells/decidim/meetings/meetings_map_cell.rb', line 11

def show
  return unless Decidim::Map.available?(:geocoding, :dynamic)

  render
end