diff --git a/app/views/events/index.ics.erb b/app/views/events/index.ics.erb index 4fe2b215..2c54cc67 100644 --- a/app/views/events/index.ics.erb +++ b/app/views/events/index.ics.erb @@ -5,8 +5,8 @@ X-WR-CALNAME:<%= t('title', scope: [:layouts, :application]).gsub(/'/, '’') %> X-WR-CALDESC:<%= t 'subtitle', 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' %> +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 %> diff --git a/app/views/events/show.ics.erb b/app/views/events/show.ics.erb index 4286b2af..c700bd88 100644 --- a/app/views/events/show.ics.erb +++ b/app/views/events/show.ics.erb @@ -5,8 +5,8 @@ X-WR-CALNAME:<%= t('title', scope: [:layouts, :application]).gsub(/'/, '’') %> X-WR-CALDESC:<%= t 'subtitle', scope: [:layouts, :application] %> <% event = @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' %> +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 %> URL:<%= event_url event %>