show canceled calendar events as canceld on home page (#151)
All checks were successful
/ build (push) Successful in 15s

Reviewed-on: #151
Reviewed-by: dario <dario@noreply.git.hamburg.ccc.de>
This commit is contained in:
bitwhisker 2026-06-01 20:08:04 +02:00
commit 5e48a1f194

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 }}