summaryrefslogtreecommitdiff
path: root/templates/report.md
diff options
context:
space:
mode:
authorÖzgür Kesim <oec@kesim.org>2024-11-29 12:38:19 +0100
committerÖzgür Kesim <oec@kesim.org>2024-11-29 12:38:19 +0100
commit2d1c6cff8c96c4d3e4986fd3396e4086e0496063 (patch)
treec641c2a8d8e10079b0a621ae0cffc54dade1376a /templates/report.md
parent63513fb66d7d8224fea53c16608265ec02836978 (diff)
template rename
Diffstat (limited to 'templates/report.md')
-rw-r--r--templates/report.md41
1 files changed, 41 insertions, 0 deletions
diff --git a/templates/report.md b/templates/report.md
new file mode 100644
index 0000000..ad0c393
--- /dev/null
+++ b/templates/report.md
@@ -0,0 +1,41 @@
+Project: {{.Name}}
+Grant: {{.Grant}}
+Start: {{.Start}}
+End: {{.End}}
+Beneficiary: {{.Beneficiary}}
+{{- $p := . }}
+{{- $totals := .Totals }}
+
+# Planning, as of {{.Today}}
+
+```
+Budgeted : {{ printf "%8s" $totals.Budgeted }}
+ Planned : {{ printf "%8s" $totals.Planned }}{{with $totals.Unaccounted}}
+ ! Open !: {{ printf "%8s" . }}{{end}}
+ Done : {{ printf "%8s" $totals.Done }}{{ with $totals.Open }}
+ ! Todo !: {{ printf "%8s" . }}
+Time left: {{ printf "%8s" ($p.AsDaysAmount (len $p.DaysRemaining)) }} * {{len $p.Users}}{{end}}
+```
+
+## Overview of WP Status
+
+```
+{{- range .ParallelWPTotals }}
+{{.}}
+{{- end}}
+```
+
+## As List
+{{range $wp, $t := $totals.WP }}
+Total for {{ $wp }}:
+ - Budgeted: {{ printf "%8s" $t.Budgeted.AsDay }}
+ - Planned: {{ printf "%8s" $t.Planned.AsDay }}{{with $t.Unaccounted }} !Unaccounted: {{printf "%8s" .AsDay}}{{end}}
+ - Actual: {{ printf "%8s" $t.Done.AsDay }}{{with $t.Open }} !Todo!: {{printf "%8s" .AsDay }}{{end}}
+ - Per Task:
+ {{- range $n, $t := $t.Tasks }}
+ - {{ $n }}:{{ $tt := $p.TotalWPTask $wp $n }}
+ - Budgeted: {{ printf "%8s" $tt.Budgeted.AsDay }}
+ - Planned: {{ printf "%8s" $tt.Planned.AsDay }}{{with $tt.Unaccounted }} !Unaccounted: {{printf "%8s" .AsDay}}{{end}}
+ - Actual: {{ printf "%8s" $tt.Done.AsDay }}{{with $tt.Open }} !Todo!: {{printf "%8s" .AsDay}}{{end}}
+ {{ end }}
+{{ end }}