summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/report.t13
1 files changed, 11 insertions, 2 deletions
diff --git a/templates/report.t b/templates/report.t
index ce1e74c..d82b8bf 100644
--- a/templates/report.t
+++ b/templates/report.t
@@ -4,7 +4,16 @@ Start: {{.Start}}
End: {{.End}}
Beneficiary: {{.Beneficiary}}
-{{ range $id, $wp := .Workpackages }}
+
+# Calendar
+
+{{ range $y, $c := .Calendars }}
+{{ $c }}
+{{ end }}
+
+
+
+{{ range $id, $wp := .Workpackages -}}
## Workpackage {{ $id }}: {{ $wp.Title }}
{{ range $tid, $task := $wp.Tasks }}
{{$task.ID}}: {{ $task.Title }}
@@ -21,7 +30,7 @@ Beneficiary: {{.Beneficiary}}
{{- $tl := .Timeline }}{{- $hd := .Holidays }}
# Days
-{{ range .Days }}
+{{ range .Days 2024 03 }}
{{if or .IsWeekend .IsHoliday }}# {{end}}{{.Date}}{{ if .IsHoliday}} ({{ index $hd .Date}}){{end -}}
{{ with .Planned }} Planned: {{ .Total }}{{ end }}{{ with .Worked }} Worked: {{ .Total }}{{end}}
{{- end }}