From fc4471717be17e7e3acadb3f217ebe3b104f1abf Mon Sep 17 00:00:00 2001 From: L3D Date: Thu, 14 Feb 2019 14:17:09 +0100 Subject: [PATCH] chane url to |asseturl and some ics testings --- content/waffeln.ics/contents.lr | 23 ++++++++++++++++++++++ flowblocks/termine.ini | 2 +- models/waffeln.ini | 5 ++++- templates/blocks/termine.ics | 1 + templates/layout.html | 34 ++++++++++++++++----------------- templates/waffeln.ics | 23 ++++++++++++++++++++++ 6 files changed, 69 insertions(+), 19 deletions(-) create mode 100644 templates/blocks/termine.ics diff --git a/content/waffeln.ics/contents.lr b/content/waffeln.ics/contents.lr index adc708b..96b6f64 100644 --- a/content/waffeln.ics/contents.lr +++ b/content/waffeln.ics/contents.lr @@ -3,3 +3,26 @@ _template: waffeln.ics _model: waffeln --- title: C3WOC Tourdaten +--- +termine: + +#### termine #### +start: 1970-01-23 13:37:23 Europe/Berlin +---- +ende: 1970-05-23 13:37:23 Europe/Berlin +---- +event: Chaos Creation Code +---- +ort: Example +---- +url: https://example.com +#### termine #### +start: 1970-01-23 13:37:23 Europe/Berlin +---- +ende: 1970-02-23 13:37:23 Europe/Berlin +---- +event: Foo +---- +ort: bar +---- +url: baz diff --git a/flowblocks/termine.ini b/flowblocks/termine.ini index df9f397..c5c3eaf 100644 --- a/flowblocks/termine.ini +++ b/flowblocks/termine.ini @@ -6,7 +6,7 @@ button_label = Termin label = Start des Events [1970-01-23 13:37:23 Europe/Berlin] type = datetime -[fields.start] +[fields.ende] label = Ende des Events [1970-01-23 13:37:23 Europe/Berlin] type = datetime diff --git a/models/waffeln.ini b/models/waffeln.ini index ee89f9a..97de2ad 100644 --- a/models/waffeln.ini +++ b/models/waffeln.ini @@ -13,5 +13,8 @@ size = large type = string - +[fields.termine] +label = Termine +type = flow +flow_blocks = termine diff --git a/templates/blocks/termine.ics b/templates/blocks/termine.ics new file mode 100644 index 0000000..4099407 --- /dev/null +++ b/templates/blocks/termine.ics @@ -0,0 +1 @@ +23 diff --git a/templates/layout.html b/templates/layout.html index 97f0173..ddbed5c 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -1,27 +1,27 @@ - + {% block title %}Startseite{% endblock %} - - + + {% block expand_description %}{% endblock %} - - - - - - + + + + + + - + {% block expand_header %}{% endblock %} - + - - - - - + + + + + diff --git a/templates/waffeln.ics b/templates/waffeln.ics index 139597f..43b2336 100644 --- a/templates/waffeln.ics +++ b/templates/waffeln.ics @@ -1,2 +1,25 @@ +BEGIN:VCALENDAR +VERSION:2.0 +PRODID:{{ this.url }}http://www.example.com/calendarapplication/ +METHOD:PUBLISH +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 }}