20 lines
675 B
Plaintext
20 lines
675 B
Plaintext
BEGIN:VCALENDAR
|
||
VERSION:2.0
|
||
PRODID:-//AgendaDuLibre.org
|
||
X-WR-CALNAME:Agenda du Libre
|
||
X-WR-TIMEZONE:Europe/Paris
|
||
CALSCALE:GREGORIAN
|
||
X-WR-CALDESC:<%= t 'title', scope: [:layouts, :application] %>
|
||
<% @events.find_each do |event| %>
|
||
BEGIN:VEVENT
|
||
DTSTART:<%= event.start_time.strftime '%Y%m%dT%H%M%S' %>
|
||
DTEND:<%= event.end_time.strftime '%Y%m%dT%H%M%S' %>
|
||
UID:<%= event.id %>@agendadulibre.org
|
||
SUMMARY:<%= event.title.gsub(',', '\,').gsub(';', '\;') %>
|
||
URL:<%= event_url event %>
|
||
DESCRIPTION:<%= strip_tags(event.description).gsub(/'/, '’').gsub(',', '\,').gsub(';', '\;').gsub(/^/, ' ') %>
|
||
LOCATION:<%= event.full_address.gsub(/,/, '\,') %>
|
||
END:VEVENT
|
||
<% end %>
|
||
END:VCALENDAR
|