summaryrefslogtreecommitdiff
path: root/templates/overview.t
diff options
context:
space:
mode:
authorÖzgür Kesim <oec@kesim.org>2024-11-27 18:05:16 +0100
committerÖzgür Kesim <oec@kesim.org>2024-11-27 18:05:16 +0100
commit43e5471fdbf91b0028c496f8e01091b2d1ad8189 (patch)
treef36aefdf7dba51f1187208b555de947b7b4910b1 /templates/overview.t
parentc86dfbfcee69062c3bd036a5070a6e62fb11e06c (diff)
seperate out overview
Diffstat (limited to 'templates/overview.t')
-rw-r--r--templates/overview.t21
1 files changed, 21 insertions, 0 deletions
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