Displaying the full event description in the ical feed
This commit is contained in:
parent
2c784f0367
commit
0d72422826
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user