From f0808ee686d48710328a09b2a410777b7ffd0938 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Tue, 16 May 2023 20:25:31 +0200 Subject: [PATCH] Verbeteren weergave --- themes/nluug/layouts/projecten/single.html | 36 ++++++++++++++-------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/themes/nluug/layouts/projecten/single.html b/themes/nluug/layouts/projecten/single.html index 7056304..00ba69d 100644 --- a/themes/nluug/layouts/projecten/single.html +++ b/themes/nluug/layouts/projecten/single.html @@ -10,20 +10,30 @@ {{ range . }} {{ $.Scratch.Set "counter" (add ($.Scratch.Get "counter") 1) }} {{ with .name }}

{{$.Scratch.Get "counter"}}. {{ . }}

{{ end }} - {{ with .description }}

{{ . }}

{{ end }} - {{ with .goal }}

Doel: {{ . }}

{{ end }} - {{ with .link }}

Relevante link: {{ .name }}

{{ end }} - {{ if .finished }}

✔️ Hoofdtaak is afgerond

{{ end }} - {{ $.Scratch.Set "counter2" 0 }} - {{ with .subtasks }} - {{ range . }} - {{ $.Scratch.Set "counter2" (add ($.Scratch.Get "counter2") 1) }} -

{{ $.Scratch.Get "counter" }}.{{ $.Scratch.Get "counter2" }}. {{ .name }}

- {{ with .description }}

{{ . }}

{{ end }} - {{ if .finished }}

✔️ Subtaak is afgerond

{{ end }} - {{ with .link }}

Relevante link: {{ .name }}

{{ end }} +
+ {{ with .description }}
{{ . }}
{{ end }} + {{ with .goal }}

Doel: {{ . }}

{{ end }} + {{ with .comment }}

{{ . }}

{{ end }} + {{ if .finished }} +

✔️ Afgerond{{ with .link }}, zie {{ .name }}{{ end }}

+ {{ else }} +

🛠️ Nog af te ronden

{{ end }} - {{ end }} + {{ $.Scratch.Set "counter2" 0 }} + {{ with .subtasks }} + {{ range . }} + {{ $.Scratch.Set "counter2" (add ($.Scratch.Get "counter2") 1) }} +

{{ $.Scratch.Get "counter" }}.{{ $.Scratch.Get "counter2" }}. {{ .name }}

+ {{ with .description }}
{{ . }}
{{ end }} + {{ with .comment }}

{{ . }}

{{ end }} + {{ if .finished }} +

✔️ Subtaak afgerond{{ with .link }}, zie {{ .name }}{{ end }}

+ {{ else }} +

🛠️ Subtaak wordt nog aan gewerkt

+ {{ end }} + {{ end }} + {{ end }} +
{{ end }} {{ end }} {{ else }}