Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
chaotikum
website
Commits
74e9c13e
Commit
74e9c13e
authored
1 year ago
by
Lukas Ruge
Browse files
Options
Downloads
Patches
Plain Diff
fix calender files
parent
f986c983
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#11095
passed
1 year ago
Stage: test
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
augenpruefraum.ics
+6
-6
6 additions, 6 deletions
augenpruefraum.ics
events.ics
+27
-14
27 additions, 14 deletions
events.ics
eventsinternal.ics
+26
-14
26 additions, 14 deletions
eventsinternal.ics
with
59 additions
and
34 deletions
augenpruefraum.ics
+
6
−
6
View file @
74e9c13e
...
@@ -12,13 +12,13 @@ METHOD:PUBLISH
...
@@ -12,13 +12,13 @@ METHOD:PUBLISH
{% for event in site.events %}{% if event.locations contains 'Augenprüfraum' %}BEGIN:VEVENT
{% for event in site.events %}{% if event.locations contains 'Augenprüfraum' %}BEGIN:VEVENT
UID:{{ event.uid }}
UID:{{ event.uid }}
ORGANIZER;CN={% if event.organizer and event.organizer != "" and event.organizer != nil %}{{event.organizer}}{% else %}Chaotikum e.V.{% endif %}:MAILTO:{{event.contact}}
ORGANIZER;CN={% if event.organizer and event.organizer != "" and event.organizer != nil %}{{event.organizer}}{% else %}Chaotikum e.V.{% endif %}:MAILTO:{{event.contact}}
LOCATION:{% if event.locations contains 'Augenprüfraum' and event.locations contains 'Wartezimmer' and event.locations contains 'Lager' %}Nobreaksoace{% else %}{{ event.locations | array_to_sentence_string }}{% endif %}{% capture textSize %}{{ event.short | size }}{% endcapture %}{% assign linelength = 60 %}{% assign rounds = textSize | divided_by: linelength %}{% assign extra = textSize | modulo: linelength %}{% assign start = 0 %}
LOCATION:{% if event.locations contains 'Augenprüfraum' and event.locations contains 'Wartezimmer' and event.locations contains 'Lager' %}Nobreakspace{% else %}{{ event.locations | array_to_sentence_string }}{% endif %}{% capture short %}{{ event.short | trim }}{% endcapture %}{% capture textSize %}{{ short | size }}{% endcapture %}{% assign linelength = 50 %}{% assign space = ' ' %}{% assign rounds = textSize | divided_by: linelength %}{% assign extra = textSize | modulo: linelength %}{% assign start = 0 %}{% if extra > 0 %}{% assign rounds = rounds | plus: 1 %}{% endif %}
SUMMARY:{{ event.title | xml_escape }}
SUMMARY:{{ event.title | xml_escape | truncate: 60}}
DESCRIPTION:{% for i in (1..rounds) %}{% if i > 1 %} {% endif %}{{ event.short | slice: start, linelength }}{% assign start = start | plus: linelength %}
DESCRIPTION:{% for i in (1..rounds) %}{% capture descline %}{{ short | slice: start, linelength }}{% endcapture %}{% if i > 1 %}{% capture descline %}{{space}}{{descline}}{% endcapture %}{% endif %}{{descline}}{% assign start = start | plus: linelength %}
{% endfor%} {{ event.short | slice: start, extra }}
{% endfor %}CLASS:PUBLIC
CLASS:PUBLIC
DTSTART;TZID=Europe/Berlin:{{ event.eventdate | date: "%Y%m%d" }}T{{ event.eventdate | date: "%H%M%S" }}
DTSTART;TZID=Europe/Berlin:{{ event.eventdate | date: "%Y%m%d" }}T{{ event.eventdate | date: "%H%M%S" }}
DTEND;TZID=Europe/Berlin:{{ event.eventend | date: "%Y%m%d" }}T{{ event.eventend | date: "%H%M%S" }}
DTEND;TZID=Europe/Berlin:{{ event.eventend | date: "%Y%m%d" }}T{{ event.eventend | date: "%H%M%S" }}
DTSTAMP:{{ event.eventdate | date: "%Y%m%d" }}T{{ event.eventdate | date: "%H%M%S" }}Z
DTSTAMP:{{ event.eventdate | date: "%Y%m%d" }}T{{ event.eventdate | date: "%H%M%S" }}Z
END:VEVENT
{% if event.uid %}{% assign post = site.posts | where: "uid", event.uid | first %}{% if post %}{% capture url %}{{site.url}}{{post.url}}{% endcapture %}{% capture urlsize %}{{ url | size }}{% endcapture %}{% assign urllength = 50 %}{% assign urlspace = ' ' %}{% assign urlrounds = urlsize | divided_by: urllength %}{% assign urlextra = urlsize | modulo: urllength %}{% assign urlstart = 0 %}{% if urlextra > 0 %}{% assign urlrounds = urlrounds | plus: 1 %}{% endif %}URL:{% for j in (1..urlrounds) %}{% capture urldescline %}{{ url | slice: urlstart, urllength }}{% endcapture %}{% if j > 1 %}{% capture urldescline %}{{urlspace}}{{urldescline}}{% endcapture %}{% endif %}{{urldescline}}{% assign urlstart = urlstart | plus: urllength %}
{% endfor %}{% endif %}{% endif %}END:VEVENT
{% endif %}{% endfor %}END:VCALENDAR
{% endif %}{% endfor %}END:VCALENDAR
This diff is collapsed.
Click to expand it.
events.ics
+
27
−
14
View file @
74e9c13e
...
@@ -7,27 +7,40 @@ VERSION:2.0
...
@@ -7,27 +7,40 @@ VERSION:2.0
X-WR-CALNAME:Chaotikum
X-WR-CALNAME:Chaotikum
X-WR-CALDESC:Termine des Chaotikum e.V.
X-WR-CALDESC:Termine des Chaotikum e.V.
CALSCALE:GREGORIAN
CALSCALE:GREGORIAN
BEGIN:VTIMEZONE
TZID:Europe/Berlin
TZURL:http://tzurl.org/zoneinfo-outlook/Europe/Berlin
X-LIC-LOCATION:Europe/Berlin
BEGIN:DAYLIGHT
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
TZNAME:CEST
DTSTART:19700329T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
TZNAME:CET
DTSTART:19701025T030000
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
END:STANDARD
END:VTIMEZONE
PRODID:https://chaotikum.org/
PRODID:https://chaotikum.org/
METHOD:PUBLISH
METHOD:PUBLISH
{%
-
for event in site.events %}
{% for event in site.events %}
{%- if e.nofrontpage == nil or e.nofrontpage == '' -%}
{%- if e.nofrontpage == nil or e.nofrontpage == '' -%}
BEGIN:VEVENT
BEGIN:VEVENT
UID:{{ event.uid }}
UID:{{ event.uid }}
ORGANIZER;CN={% if event.organizer and event.organizer != "" and event.organizer != nil %}{{event.organizer}}{% else %}Chaotikum e.V.{% endif %}:MAILTO:{{event.contact}}
ORGANIZER;CN={% if event.organizer and event.organizer != "" and event.organizer != nil %}{{event.organizer}}{% else %}Chaotikum e.V.{% endif %}:MAILTO:{{event.contact}}
LOCATION:{% if event.locations contains 'Augenprüfraum' and event.locations contains 'Wartezimmer' and event.locations contains 'Lager' %}Nobreakspace{% else %}{{ event.locations | array_to_sentence_string }}{% endif %}{% capture textSize %}{{
event.
short | size }}{% endcapture %}{% assign linelength = 50 %}{% assign rounds = textSize | divided_by: linelength %}{% assign extra = textSize | modulo: linelength %}{% assign start = 0 %}
LOCATION:{% if event.locations contains 'Augenprüfraum' and event.locations contains 'Wartezimmer' and event.locations contains 'Lager' %}Nobreakspace{% else %}{{ event.locations | array_to_sentence_string }}{% endif %}{% capture
short %}{{ event.short | trim }}{% endcapture %}{% capture
textSize %}{{ short | size }}{% endcapture %}{% assign linelength = 50 %}{% assign
space = ' ' %}{% assign
rounds = textSize | divided_by: linelength %}{% assign extra = textSize | modulo: linelength %}{% assign start = 0 %}
{% if extra > 0 %}{% assign rounds = rounds | plus: 1 %}{% endif %}
SUMMARY:{{ event.title | xml_escape | truncate: 60}}
SUMMARY:{{ event.title | xml_escape | truncate: 60}}
DESCRIPTION:{% for i in (1..rounds) %}{% if i > 1 %} {% endif %}{{ event.short | slice: start, linelength }}{% assign start = start | plus: linelength %}
DESCRIPTION:{% for i in (1..rounds) %}{% capture descline %}{{ short | slice: start, linelength }}{% endcapture %}{% if i > 1 %}{% capture descline %}{{space}}{{descline}}{% endcapture %}{% endif %}{{descline}}{% assign start = start | plus: linelength %}
{% endfor%}{{ event.short | slice: start, extra }}
{% endfor %}CLASS:PUBLIC
CLASS:PUBLIC
DTSTART;TZID=Europe/Berlin:{{ event.eventdate | date: "%Y%m%d" }}T{{ event.eventdate | date: "%H%M%S" }}
DTSTART;TZID=Europe/Berlin:{{ event.eventdate | date: "%Y%m%d" }}T{{ event.eventdate | date: "%H%M%S" }}
DTEND;TZID=Europe/Berlin:{{ event.eventend | date: "%Y%m%d" }}T{{ event.eventend | date: "%H%M%S" }}
DTEND;TZID=Europe/Berlin:{{ event.eventend | date: "%Y%m%d" }}T{{ event.eventend | date: "%H%M%S" }}
DTSTAMP:{{ event.eventdate | date: "%Y%m%d" }}T{{ event.eventdate | date: "%H%M%S" }}Z
DTSTAMP:{{ event.eventdate | date: "%Y%m%d" }}T{{ event.eventdate | date: "%H%M%S" }}Z
{%- if event.uid %}
{% if event.uid %}{% assign post = site.posts | where: "uid", event.uid | first %}{% if post %}{% capture url %}{{site.url}}{{post.url}}{% endcapture %}{% capture urlsize %}{{ url | size }}{% endcapture %}{% assign urllength = 50 %}{% assign urlspace = ' ' %}{% assign urlrounds = urlsize | divided_by: urllength %}{% assign urlextra = urlsize | modulo: urllength %}{% assign urlstart = 0 %}{% if urlextra > 0 %}{% assign urlrounds = urlrounds | plus: 1 %}{% endif %}URL:{% for j in (1..urlrounds) %}{% capture urldescline %}{{ url | slice: urlstart, urllength }}{% endcapture %}{% if j > 1 %}{% capture urldescline %}{{urlspace}}{{urldescline}}{% endcapture %}{% endif %}{{urldescline}}{% assign urlstart = urlstart | plus: urllength %}
{%- assign post = site.posts | where: "uid", event.uid | first %}
{% endfor %}{% endif %}{% endif %}END:VEVENT
{%- if post %}
{% endif %}
URL:{{site.url}}{{post.url}}
{%- endfor -%}END:VCALENDAR
{%- endif -%}{%- endif -%}
END:VEVENT
{%- endif -%}
{%- endfor %}
END:VCALENDAR
This diff is collapsed.
Click to expand it.
eventsinternal.ics
+
26
−
14
View file @
74e9c13e
...
@@ -7,25 +7,37 @@ VERSION:2.0
...
@@ -7,25 +7,37 @@ VERSION:2.0
X-WR-CALNAME:Chaotikum
X-WR-CALNAME:Chaotikum
X-WR-CALDESC:Termine des Chaotikum e.V.
X-WR-CALDESC:Termine des Chaotikum e.V.
CALSCALE:GREGORIAN
CALSCALE:GREGORIAN
BEGIN:VTIMEZONE
TZID:Europe/Berlin
TZURL:http://tzurl.org/zoneinfo-outlook/Europe/Berlin
X-LIC-LOCATION:Europe/Berlin
BEGIN:DAYLIGHT
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
TZNAME:CEST
DTSTART:19700329T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
TZNAME:CET
DTSTART:19701025T030000
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
END:STANDARD
END:VTIMEZONE
PRODID:https://chaotikum.org/
PRODID:https://chaotikum.org/
METHOD:PUBLISH
METHOD:PUBLISH
{%- for event in site.events %}
{% for event in site.events %}BEGIN:VEVENT
BEGIN:VEVENT
UID:{{ event.uid }}
UID:{{ event.uid }}
ORGANIZER;CN={% if event.organizer and event.organizer != "" and event.organizer != nil %}{{event.organizer}}{% else %}Chaotikum e.V.{% endif %}:MAILTO:{{event.contact}}
ORGANIZER;CN={% if event.organizer and event.organizer != "" and event.organizer != nil %}{{event.organizer}}{% else %}Chaotikum e.V.{% endif %}:MAILTO:{{event.contact}}
LOCATION:{% if event.locations contains 'Augenprüfraum' and event.locations contains 'Wartezimmer' and event.locations contains 'Lager' %}Nobreakspace{% else %}{{ event.locations | array_to_sentence_string }}{% endif %}{% capture textSize %}{{
event.
short | size }}{% endcapture %}{% assign linelength = 50 %}{% assign rounds = textSize | divided_by: linelength %}{% assign extra = textSize | modulo: linelength %}{% assign start = 0 %}
LOCATION:{% if event.locations contains 'Augenprüfraum' and event.locations contains 'Wartezimmer' and event.locations contains 'Lager' %}Nobreakspace{% else %}{{ event.locations | array_to_sentence_string }}{% endif %}{% capture
short %}{{ event.short | trim }}{% endcapture %}{% capture
textSize %}{{ short | size }}{% endcapture %}{% assign linelength = 50 %}{% assign
space = ' ' %}{% assign
rounds = textSize | divided_by: linelength %}{% assign extra = textSize | modulo: linelength %}{% assign start = 0 %}
{% if extra > 0 %}{% assign rounds = rounds | plus: 1 %}{% endif %}
SUMMARY:{{ event.title | xml_escape | truncate: 60}}
SUMMARY:{{ event.title | xml_escape | truncate: 60}}
DESCRIPTION:{% for i in (1..rounds) %}{% if i > 1 %} {% endif %}{{ event.short | slice: start, linelength }}{% assign start = start | plus: linelength %}
DESCRIPTION:{% for i in (1..rounds) %}{% capture descline %}{{ short | slice: start, linelength }}{% endcapture %}{% if i > 1 %}{% capture descline %}{{space}}{{descline}}{% endcapture %}{% endif %}{{descline}}{% assign start = start | plus: linelength %}
{% endfor%}{{ event.short | slice: start, extra }}
{% endfor %}CLASS:PUBLIC
CLASS:PUBLIC
DTSTART;TZID=Europe/Berlin:{{ event.eventdate | date: "%Y%m%d" }}T{{ event.eventdate | date: "%H%M%S" }}
DTSTART;TZID=Europe/Berlin:{{ event.eventdate | date: "%Y%m%d" }}T{{ event.eventdate | date: "%H%M%S" }}
DTEND;TZID=Europe/Berlin:{{ event.eventend | date: "%Y%m%d" }}T{{ event.eventend | date: "%H%M%S" }}
DTEND;TZID=Europe/Berlin:{{ event.eventend | date: "%Y%m%d" }}T{{ event.eventend | date: "%H%M%S" }}
DTSTAMP:{{ event.eventdate | date: "%Y%m%d" }}T{{ event.eventdate | date: "%H%M%S" }}Z
DTSTAMP:{{ event.eventdate | date: "%Y%m%d" }}T{{ event.eventdate | date: "%H%M%S" }}Z
{%- if event.uid %}
{% if event.uid %}{% assign post = site.posts | where: "uid", event.uid | first %}{% if post %}{% capture url %}{{site.url}}{{post.url}}{% endcapture %}{% capture urlsize %}{{ url | size }}{% endcapture %}{% assign urllength = 50 %}{% assign urlspace = ' ' %}{% assign urlrounds = urlsize | divided_by: urllength %}{% assign urlextra = urlsize | modulo: urllength %}{% assign urlstart = 0 %}{% if urlextra > 0 %}{% assign urlrounds = urlrounds | plus: 1 %}{% endif %}URL:{% for j in (1..urlrounds) %}{% capture urldescline %}{{ url | slice: urlstart, urllength }}{% endcapture %}{% if j > 1 %}{% capture urldescline %}{{urlspace}}{{urldescline}}{% endcapture %}{% endif %}{{urldescline}}{% assign urlstart = urlstart | plus: urllength %}
{%- assign post = site.posts | where: "uid", event.uid | first %}
{% endfor %}{% endif %}{% endif %}END:VEVENT
{%- if post %}
{% endfor %}END:VCALENDAR
URL:{{site.url}}{{post.url}}
{%- endif %}{%- endif %}
END:VEVENT
{%- endfor %}
END:VCALENDAR
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment