webseite/templates/events/event.ics

32 lines
1.3 KiB
Text
Raw Permalink Normal View History

{#- © by L3D <l3d@c3woc.de> #}
{% set fqdn = '/' | url(external=true) | string -%}
BEGIN:VEVENT
UID:{{ blk.start.strftime('%m%H%d%M%Y%S') }}{{ blk.event[:1] }}{{ blk.event[-1:] }}{{ blk.ende.strftime('%m%H%d%M%Y%S') }}@{{ fqdn[8:-1] }}
DTSTART;VALUE=DATE-TIME;TZID=Europe/Berlin:{{ blk.start.strftime('%Y%m%dT%H%M%S') }}
DTSTAMP;VALUE=DATE-TIME;TZID=Europe/Berlin:{{ blk.start.strftime('%Y%m%dT%H%M%S') }}
CLASS:PUBLIC
2023-01-18 00:19:33 +01:00
DESCRIPTION;LANGUAGE={{ this.lang }}:{{ blk.description|replace( "|", "\\n") | wordwrap(width=35, wrapstring='\n ') }}
{%- if blk.url is defined and not blk.url == '' %}\n
2023-01-18 00:19:33 +01:00
Weiteres dazu auf
{{ blk.url | wordwrap(width=65, wrapstring='\n ') }}{% endif %}
LOCATION;LANGUAGE={{ this.lang }}:{{ blk.ort | wordwrap(width=45, wrapstring='\n ') }}
2023-06-25 22:54:42 +02:00
{%- if blk.confirmed == 'true' -%}{{- '\n' -}}
STATUS:CONFIRMED
METHOD:PUBLISH
{%- elif blk.confirmed == 'canceled' -%}{{- '\n' -}}
STATUS:CANCELLED
METHOD:CANCEL
{%- else -%}{{- '\n' -}}
STATUS:TENTATIVE
{%- endif -%} {{- '\n' -}}
SUMMARY;LANGUAGE={{ this.lang }}:{{ blk.event | wordwrap(width=45, wrapstring='\n ') }}
TRANSP:OPAQUE
2023-06-25 22:54:42 +02:00
{%- if blk.url is defined %}
URL:{{ blk.url }}
2023-06-25 22:54:42 +02:00
{%- endif %}
DTEND;VALUE=DATE-TIME;TZID=Europe/Berlin:{{ blk.ende.strftime('%Y%m%dT%H%M%S') }}
CONTACT;LANGUAGE={{ this.lang }}:{{ blk.mail }}
COLOR:{{ blk.color }}
END:VEVENT