show canceled calendar events as canceld on home page #151

Merged
bitwhisker merged 1 commit from feat/canceled-calendar into main 2026-06-01 20:08:05 +02:00
Showing only changes of commit 90c1e00005 - Show all commits

show canceled calendar events as canceld on home page
Some checks failed
/ build (pull_request) Successful in 42s
/ cleanup-staging (pull_request) Failing after 2s

bitwhisker 2026-06-01 20:00:39 +02:00
Signed by: bitwhisker
SSH key fingerprint: SHA256:KybIk/tusSKao6eLGY+ILlFa1rCrzwx66/acBAcKUqE

View file

@ -12,17 +12,17 @@
{{- if eq ._type "vevent"}} {{- if eq ._type "vevent"}}
<tr> <tr>
{{- $start := time .dtstart }} {{- $start := time .dtstart }}
<td style="font-variant-numeric: tabular-nums;">{{ time.Format "Mon, 2006-01-02 15:04" $start.Local }}</td> <td style="font-variant-numeric: tabular-nums;">{{- if eq .status "CANCELLED" }}<del>{{- end }}{{ time.Format "Mon, 2006-01-02 15:04" $start.Local }}{{- if eq .status "CANCELLED" }}</del>{{- end }}</td>
{{- $potentialUrl := index (findRE `https?://\S*` .description 1) 0 }} {{- $potentialUrl := index (findRE `https?://\S*` .description 1) 0 }}
{{- if eq $potentialUrl nil }} {{- if eq $potentialUrl nil }}
<td>{{ .summary }}</td> <td>{{- if eq .status "CANCELLED" }}<del>{{- end }}{{ .summary }}{{- if eq .status "CANCELLED" }}</del>{{- end }}</td>
{{- else }} {{- else }}
<td><a href="{{ $potentialUrl }}">{{ .summary }}</a></td> <td><a href="{{ $potentialUrl }}">{{- if eq .status "CANCELLED" }}<del>{{- end }}{{ .summary }}{{- if eq .status "CANCELLED" }}</del>{{- end }}</a></td>
{{- end }} {{- end }}
{{- if eq .location "Z9" }} {{- if eq .location "Z9" }}
<td><a href="https://wiki.hamburg.ccc.de/club:z9:start">Z9</a></td> <td><a href="https://wiki.hamburg.ccc.de/club:z9:start">{{- if eq .status "CANCELLED" }}<del>{{- end }}Z9{{- if eq .status "CANCELLED" }}</del>{{- end }}</a></td>
{{- else }} {{- else }}
<td>{{ .location }}</td> <td>{{- if eq .status "CANCELLED" }}<del>{{- end }}{{ .location }}{{- if eq .status "CANCELLED" }}</del>{{- end }}</td>
{{- end }} {{- end }}
</tr> </tr>
{{- end }} {{- end }}