From 43e5471fdbf91b0028c496f8e01091b2d1ad8189 Mon Sep 17 00:00:00 2001 From: Özgür Kesim Date: Wed, 27 Nov 2024 18:05:16 +0100 Subject: seperate out overview --- templates/overview.t | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 templates/overview.t (limited to 'templates/overview.t') diff --git a/templates/overview.t b/templates/overview.t new file mode 100644 index 0000000..caff0cb --- /dev/null +++ b/templates/overview.t @@ -0,0 +1,21 @@ +{{ range $id, $wp := .Workpackages -}} +## Workpackage {{ $id }}: {{ $wp.Title }} +{{ range $tid, $task := $wp.Tasks }} + {{$task.ID}}: {{ $task.Title }} + Budget: {{ $task.Budget.AsMonth }} +{{ end }} + +{{ end }} + +| Date | Time | WP's | +|:-----------|---------:|:--------:| +{{- range $d, $e := .Timeline }} +| {{ $d }} | {{ printf "%8s" $e.Total }} | {{ printf "%8s" $e.WPs }} | +{{- end }} +{{- $tl := .Timeline }}{{- $hd := .Holidays }} + +# 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 }} \ No newline at end of file -- cgit v1.2.3