app/helpers/decidim/meetings/map_helper.rb in decidim-meetings-0.0.8.1 vs app/helpers/decidim/meetings/map_helper.rb in decidim-meetings-0.1.0

- old
+ new

@@ -7,18 +7,18 @@ # # geocoded_meetings - A collection of geocoded meetings def meetings_data_for_map(geocoded_meetings) geocoded_meetings.map do |meeting| meeting.slice(:latitude, :longitude, :address).merge(title: translated_attribute(meeting.title), - description: translated_attribute(meeting.description), - startTimeDay: l(meeting.start_time, format: "%d"), - startTimeMonth: l(meeting.start_time, format: "%B"), - startTimeYear: l(meeting.start_time, format: "%Y"), - startTime: "#{meeting.start_time.strftime("%H:%M")} - #{meeting.end_time.strftime("%H:%M")}", - icon: icon("meetings", width: 40, height: 70, remove_icon_class: true), - location: translated_attribute(meeting.location), - locationHints: translated_attribute(meeting.location_hints), - link: meeting_path(meeting)) + description: translated_attribute(meeting.description), + startTimeDay: l(meeting.start_time, format: "%d"), + startTimeMonth: l(meeting.start_time, format: "%B"), + startTimeYear: l(meeting.start_time, format: "%Y"), + startTime: "#{meeting.start_time.strftime("%H:%M")} - #{meeting.end_time.strftime("%H:%M")}", + icon: icon("meetings", width: 40, height: 70, remove_icon_class: true), + location: translated_attribute(meeting.location), + locationHints: translated_attribute(meeting.location_hints), + link: meeting_path(meeting)) end end end end end