Improved ics

This commit is contained in:
L3D 2019-02-14 15:45:50 +01:00
parent fc4471717b
commit 8b36926ff0
2 changed files with 25 additions and 23 deletions

View file

@ -22,4 +22,10 @@ type = string
label = Link zu weiteren Informationen
type = string
[fields.summary]
label = Beschreibung
type = text
[fields.confirmed]
label = Status: bestätigt?
type = boolean

View file

@ -1,25 +1,21 @@
BEGIN:VCALENDAR
{% set fqdn = 'c3woc.de'
%}BEGIN:VCALENDAR
VERSION:2.0
PRODID:{{ this.url }}http://www.example.com/calendarapplication/
METHOD:PUBLISH
CALSCALE:GREGORIAN
PRODID:https://{{ fqdn }}/{{ this._id }}
METHOD:PUBLISH{%
for blk in this.termine.blocks %}
BEGIN:VEVENT
UID:461092315540@example.com
ORGANIZER;CN="Alice Balder, Example Inc.":MAILTO:alice@example.com
LOCATION:Irgendwo
GEO:48.85299;2.36885
SUMMARY:Eine Kurzinfo
DESCRIPTION:Beschreibung des Termines
CLASS:PUBLIC
DTSTART:20060910T220000Z
DTEND:20060919T215900Z
DTSTAMP:20060812T125900Z
END:VEVENT
END:VCALENDAR
{{ this._gid }}
{% for blk in this.termine.blocks %}
{{ blk }}
{{ blk.start }}
{% endfor %}
{{ this }}
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 }}
SUMMARY:{{ blk.summary }}
DESCRIPTION:{{ blk.url }}
END:VEVENT{%
endfor %}
END:VCALENDAR