|
|
@@ -1,22 +1,18 @@
|
|
|
-BEGIN:VCALENDAR
|
|
|
-VERSION:2.0
|
|
|
-PRODID:-//hacksw/handcal//NONSGML v1.0//EN
|
|
|
-
|
|
|
-{% for period in event.getPeriods %}
|
|
|
-BEGIN:VEVENT
|
|
|
-UID:{{ period.getStartOn|date('Ymd\\THis') }}Z-{{ event.id}}@orgasso.net
|
|
|
-DTSTART:{{ period.getStartOn|date('Ymd\\THis') }}Z
|
|
|
-DTEND:{{ period.getEndOn|date('Ymd\\THis') }}Z
|
|
|
-SUMMARY:{{ event.name }}
|
|
|
-{% set description_lines = [] %}
|
|
|
-{% for party in event.getParties %}
|
|
|
- {% set line = party.getGame.getName ~ '\nHoraire : le ' ~ party.getStartOn|date('d/m') ~ ' de ' ~ party.getStartOn|date('H:i') ~ ' à ' ~ party.getEndOn|date('H:i') ~ '\n' ~ party.getGame.getDescription %}
|
|
|
- {% set description_lines = description_lines|merge([line]) %}
|
|
|
-{% endfor %}
|
|
|
-{% set description = (event.description ~ '\n' ~ description_lines|join('\n'))|replace({',':'\,',';':'\;','\\':'\\\\'}) %}
|
|
|
-DESCRIPTION:{{ description }}
|
|
|
-URL:{{ url('app_main_booking', {id: event.id}) }}
|
|
|
-END:VEVENT
|
|
|
-{% endfor %}
|
|
|
-
|
|
|
+BEGIN:VCALENDAR
|
|
|
+VERSION:2.0
|
|
|
+PRODID:-//hacksw/handcal//NONSGML v1.0//EN
|
|
|
+{% for period in event.getPeriods %}BEGIN:VEVENT
|
|
|
+UID:{{ period.getStartOn|date('Ymd\\THis') }}Z-{{ event.id}}@orgasso.net
|
|
|
+DTSTART:{{ period.getStartOn|date('Ymd\\THis') }}Z
|
|
|
+DTEND:{{ period.getEndOn|date('Ymd\\THis') }}Z
|
|
|
+SUMMARY:{{ event.name }}
|
|
|
+{% set description_lines = [] %}
|
|
|
+{% for party in event.getParties %}
|
|
|
+ {% set line = party.getGame.getName ~ '\nHoraire : le ' ~ party.getStartOn|date('d/m') ~ ' de ' ~ party.getStartOn|date('H:i') ~ ' à ' ~ party.getEndOn|date('H:i') ~ '\n' ~ party.getGame.getDescription %}
|
|
|
+ {% set description_lines = description_lines|merge([line]) %}
|
|
|
+{% endfor %}
|
|
|
+{% set description = (event.description ~ '\n' ~ description_lines|join('\n'))|replace({',':'\,',';':'\;','\\':'\\\\'}) %}
|
|
|
+DESCRIPTION:{{ description }}
|
|
|
+URL:{{ url('app_main_booking', {id: event.id}) }}
|
|
|
+END:VEVENT{% endfor %}
|
|
|
END:VCALENDAR
|