Fix bug if no turniermeldungen are pending
This commit is contained in:
parent
b71ab81040
commit
0ba1aa0e96
@ -9,6 +9,9 @@
|
|||||||
{{- $futureMeldungen = $futureMeldungen | append . }}
|
{{- $futureMeldungen = $futureMeldungen | append . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if eq (len $futureMeldungen) 0 }}
|
||||||
|
<p>Aktuell sind keine Turniermeldungen bekannt. Bald kommt hier wieder mehr...</p>
|
||||||
|
{{ else }}
|
||||||
<div class="turniermeldungen-group-list">
|
<div class="turniermeldungen-group-list">
|
||||||
{{ range ( $futureMeldungen.GroupByParamDate "dateCompetition" "02.01.2006" "asc") }}
|
{{ range ( $futureMeldungen.GroupByParamDate "dateCompetition" "02.01.2006" "asc") }}
|
||||||
<div class="day">
|
<div class="day">
|
||||||
@ -19,6 +22,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
{{ end -}}
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
{{ partial "totop" }}
|
{{ partial "totop" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user