summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorÖzgür Kesim <oec@codeblau.de>2024-11-27 14:17:36 +0100
committerÖzgür Kesim <oec@codeblau.de>2024-11-27 14:17:36 +0100
commit4751522458989ca444b6ebb0131f59b7617c000e (patch)
tree6bbcb5e76fbb0175051bb4b53ff709d7ec153e06 /templates
parent94746631182f277f9aff57a8de4b77d06f83150d (diff)
calendars added
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 }}