Skip to content
Extraits de code Groupes Projets
Valider 0d724228 rédigé par echarp's avatar echarp
Parcourir les fichiers

Displaying the full event description in the ical feed

parent 2c784f03
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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
......
......@@ -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
......@@ -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
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter