Displaying the full event description in the ical feed

This commit is contained in:
echarp 2014-08-25 17:22:14 +02:00
parent 2c784f0367
commit 0d72422826
3 changed files with 6 additions and 6 deletions

View File

@ -22,7 +22,7 @@
- .sort_by { |e| e.city }.each do |event|
%li.event
= link_to event do
%strong.city= event.city.gsub '-', ' '
%strong.city= event.city
= event.title
- else
@ -41,7 +41,7 @@
- .sort_by { |e| e.city }.each do |event|
%li.event
= link_to event do
%strong.city= event.city.gsub '-', ' '
%strong.city= event.city
= event.title
.formats

View File

@ -12,8 +12,8 @@ DTEND;TZID=Europe/Paris:<%= event.end_time.strftime '%Y%m%dT%H%M%S' %>
UID:<%= event.id %>@agendadulibre.org
SUMMARY:<%= event.title %>
URL:<%= event_url event %>
DESCRIPTION:Un événement de l'Agenda du Libre
LOCATION:<%= event.address %> <%= event.city.gsub('-', ' ') %>
DESCRIPTION:<%= strip_tags(event.description).gsub(/\r/, '').gsub /^/, ' ' %>
LOCATION:<%= event.full_address %>
END:VEVENT
<% end %>
END:VCALENDAR

View File

@ -12,7 +12,7 @@ DTEND;TZID=Europe/Paris:<%= event.end_time.strftime '%Y%m%dT%H%M%S' %>
UID:<%= event.id %>@agendadulibre.org
SUMMARY:<%= event.title %>
URL:<%= event_url event %>
DESCRIPTION:Un événement de l'Agenda du Libre
LOCATION:<%= event.address %> <%= event.city %>
DESCRIPTION:<%= strip_tags(event.description).gsub(/\r/, '').gsub /^/, ' ' %>
LOCATION:<%= event.full_address %>
END:VEVENT
END:VCALENDAR