2014-07-07 13:49:31 +02:00
|
|
|
|
BEGIN:VCALENDAR
|
|
|
|
|
VERSION:2.0
|
|
|
|
|
PRODID:-//AgendaDuLibre.org
|
2018-03-17 17:21:26 +01:00
|
|
|
|
X-WR-CALNAME:<%= t('title', scope: [:layouts, :application]).gsub(/'/, '’') %>
|
|
|
|
|
X-WR-CALDESC:<%= t 'subtitle', scope: [:layouts, :application] %>
|
|
|
|
|
X-WR-TIMEZONE:<%= Time.now.zone %>
|
2014-07-07 13:49:31 +02:00
|
|
|
|
<% event = @event %>
|
|
|
|
|
BEGIN:VEVENT
|
2018-03-17 17:21:26 +01:00
|
|
|
|
DTSTART;TZID=<%= Time.now.zone %>:<%= event.start_time.strftime '%Y%m%dT%H%M%S' %>
|
|
|
|
|
DTEND;TZID=<%= Time.now.zone %>:<%= event.end_time.strftime '%Y%m%dT%H%M%S' %>
|
2014-07-07 13:49:31 +02:00
|
|
|
|
UID:<%= event.id %>@agendadulibre.org
|
|
|
|
|
SUMMARY:<%= event.title %>
|
|
|
|
|
URL:<%= event_url event %>
|
2014-08-26 00:26:15 +02:00
|
|
|
|
DESCRIPTION:<%= strip_tags(event.description).gsub(/'/, '’').gsub(/,/, '\,').gsub(/;/, '\;').gsub /^/, ' ' %>
|
2014-08-25 17:22:14 +02:00
|
|
|
|
LOCATION:<%= event.full_address %>
|
2014-07-07 13:49:31 +02:00
|
|
|
|
END:VEVENT
|
|
|
|
|
END:VCALENDAR
|