2014-01-04 11:34:50 +01:00
|
|
|
|
BEGIN:VCALENDAR
|
|
|
|
|
VERSION:2.0
|
|
|
|
|
PRODID:-//AgendaDuLibre.org
|
2016-10-18 15:52:56 +02:00
|
|
|
|
X-WR-CALNAME:<%= t('title', scope: [:layouts, :application]).gsub(/'/, '’') %>
|
|
|
|
|
X-WR-CALDESC:<%= t 'subtitle', scope: [:layouts, :application] %>
|
2014-08-25 17:55:14 +02:00
|
|
|
|
<% @events.find_each do |event| %>
|
2014-01-04 11:34:50 +01:00
|
|
|
|
BEGIN:VEVENT
|
2018-04-08 00:43:11 +02:00
|
|
|
|
DTSTART:<%= event.start_time.strftime '%Y%m%dT%H%M%S' %>
|
|
|
|
|
DTEND:<%= event.end_time.strftime '%Y%m%dT%H%M%S' %>
|
2014-01-04 11:34:50 +01:00
|
|
|
|
UID:<%= event.id %>@agendadulibre.org
|
2015-01-21 16:12:16 +01:00
|
|
|
|
SUMMARY:<%= event.title.gsub(',', '\,').gsub(';', '\;') %>
|
2014-01-04 11:34:50 +01:00
|
|
|
|
URL:<%= event_url event %>
|
2015-01-21 16:12:16 +01:00
|
|
|
|
DESCRIPTION:<%= strip_tags(event.description).gsub(/'/, '’').gsub(',', '\,').gsub(';', '\;').gsub(/^/, ' ') %>
|
2014-08-25 23:57:57 +02:00
|
|
|
|
LOCATION:<%= event.full_address.gsub(/,/, '\,') %>
|
2014-01-04 11:34:50 +01:00
|
|
|
|
END:VEVENT
|
|
|
|
|
<% end %>
|
|
|
|
|
END:VCALENDAR
|