From 86c46dd70bcf98cd110303665e6c9c04cb62a40c Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Mon, 22 May 2023 15:07:30 +0200 Subject: [PATCH] Template voor content-reviews --- .../nluug/layouts/custom/content-review.html | 83 +++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 themes/nluug/layouts/custom/content-review.html diff --git a/themes/nluug/layouts/custom/content-review.html b/themes/nluug/layouts/custom/content-review.html new file mode 100644 index 0000000..d884b58 --- /dev/null +++ b/themes/nluug/layouts/custom/content-review.html @@ -0,0 +1,83 @@ +{{ define "main" }} +{{ $.Scratch.Set "counter" 0 }} + +
{{ .Content }}
+ +

Documenten voor Content Review

+
+ + + + + + + + + + + + + + + {{ range where .Site.Pages "Params.review" "!=" nil }} + {{ if .Params.review.last_review }} + {{ $reviewdate := .Params.review.last_review | time.AsTime }} + {{ $reviewdate := $reviewdate.AddDate 0 0 .Params.review.period | time.Format "2006-01-02" }} + + + + + + + + + + + {{ end }} + {{ end }} + +
TitelLaatste wijzigingLaatste reviewReview voor datumReviewperiodeReview nodig?TaalBestandsnaam
{{ .Title | default .Site.Params.textNoTitle }}{{ .Lastmod | dateFormat "2006-01-02 15:04:05" }}{{ if .Params.review.last_review }}{{ .Params.review.last_review }}{{ else }}Onbekend{{ end }}{{ with $reviewdate }}{{ . }}{{ end }}{{ with .Params.review.period }}{{ . }} dagen{{ end }} + {{ if .Params.review.last_review }} + {{ if gt (now | time.Format "2006-01-02") $reviewdate }} + {{ if .Params.review.disabled }} + Uitgeschakeld + {{ else }} + Ja 🛠️ + {{ $.Scratch.Set "counter" (add ($.Scratch.Get "counter") 1) }} + {{ end }} + {{ else }} + Nee + {{ end }} + {{ else }} + Onbekend + {{ end }} + {{ with .File }}{{ .Lang }}{{ end }}{{ with .File }}{{ .Path }}{{ end }}
+
+ +

Aantal documenten die review nodig hebben: {{ $.Scratch.Get "counter" }}

+ +

Geen data beschikbaar voor Content Review

+
+ + + + + + + + + + + {{ range where .Site.RegularPages "Params.review" "==" nil }} + + + + + + + {{ end }} + +
TitelLaatste wijzigingTaalBestandsnaam
{{ .Title | default .Site.Params.textNoTitle }}{{ .Lastmod | dateFormat "2006-01-02 15:04:05" }}{{ with .File }}{{ .Lang }}{{ end }}{{ with .File }}{{ .Path }}{{ end }}
+
+ +{{ end }}