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| - .sort_by { |e| e.city }.each do |event|
%li.event %li.event
= link_to event do = link_to event do
%strong.city= event.city.gsub '-', ' ' %strong.city= event.city
= event.title = event.title
- else - else
@ -41,7 +41,7 @@
- .sort_by { |e| e.city }.each do |event| - .sort_by { |e| e.city }.each do |event|
%li.event %li.event
= link_to event do = link_to event do
%strong.city= event.city.gsub '-', ' ' %strong.city= event.city
= event.title = event.title
.formats .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 UID:<%= event.id %>@agendadulibre.org
SUMMARY:<%= event.title %> SUMMARY:<%= event.title %>
URL:<%= event_url event %> URL:<%= event_url event %>
DESCRIPTION:Un événement de l'Agenda du Libre DESCRIPTION:<%= strip_tags(event.description).gsub(/\r/, '').gsub /^/, ' ' %>
LOCATION:<%= event.address %> <%= event.city.gsub('-', ' ') %> LOCATION:<%= event.full_address %>
END:VEVENT END:VEVENT
<% end %> <% end %>
END:VCALENDAR 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 UID:<%= event.id %>@agendadulibre.org
SUMMARY:<%= event.title %> SUMMARY:<%= event.title %>
URL:<%= event_url event %> URL:<%= event_url event %>
DESCRIPTION:Un événement de l'Agenda du Libre DESCRIPTION:<%= strip_tags(event.description).gsub(/\r/, '').gsub /^/, ' ' %>
LOCATION:<%= event.address %> <%= event.city %> LOCATION:<%= event.full_address %>
END:VEVENT END:VEVENT
END:VCALENDAR END:VCALENDAR