webseite/templates/waffeln.ics
2019-02-16 14:31:26 +01:00

20 lines
654 B
Text

{% set fqdn = 'c3woc.de'
%}BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
PRODID:https://{{ fqdn }}/{{ this._id }}
METHOD:PUBLISH{%
for blk in this.termine.blocks|sort(attribute='start', reverse = True) %}
BEGIN:VEVENT
SUMMARY:{{ blk.event }}
ORGANIZER;CN="C3 Waffel Operation Center":MAILTO:waffel@{{ fqdn }}
DTSTART;TZID=Europe/Berlin:{{ blk.start.strftime('%Y%m%dT%H%M%S') }}
DTEND;TZID=Europe/Berlin:{{ blk.ende.strftime('%Y%m%dT%H%M%S') }}
STATUS:{%
if blk.confirmed %}CONFIRMED{%
else %}TENTATIVE{% endif %}
LOCATION:{{ blk.ort }}
DESCRIPTION:{{ blk.description|replace( "|", "\n") }}\n{{ blk.url }}
END:VEVENT{%
endfor %}
END:VCALENDAR