diff options
Diffstat (limited to 'templates/status.md')
-rw-r--r-- | templates/status.md | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/templates/status.md b/templates/status.md index 375058f..c67f071 100644 --- a/templates/status.md +++ b/templates/status.md @@ -6,19 +6,30 @@ Beneficiary: {{.Beneficiary}} {{- $p := . }} {{- $start := ParseDate "2023-12-01" }} {{- $end := ParseDate "2024-11-30" }} -{{- $totals := .Totals $start $end }} +{{- $totals := .Totals }} # Status, as of {{.Today}} ``` Planned : {{ printf "%8s" $totals.Planned }}{{with $totals.Unaccounted}} ! Open !: {{ printf "%8s" . }}{{end}} - Done : {{ printf "%8s" $totals.Done }}{{ with $totals.Open }} - ! Todo !: {{ printf "%8s" . }} + Done : {{ printf "%8s" $totals.Done.AsMonth }} + {{ printf " %5.2f%%" $totals.Percent }} + Diff : {{ printf "%8s" $totals.Difference.AsMonth }}{{with $totals.Open }} + ! Todo !: {{ printf "%8s" .AsMonth }} Time left: {{ printf "%8s" ($p.AsDaysAmount (len $p.DaysRemaining)) }} * {{len $p.Users}}{{end}} ``` ## Overview of WP Status + +``` +{{- range .ParallelWPTotals }} +{{.}} +{{- end}} +``` + +## Overview of WP Status + {{range $wp, $t := $totals.WP }} Total for {{ $wp }}: - Budgeted: {{ printf "%8s" $t.Budgeted.AsDay }} @@ -26,17 +37,9 @@ Total for {{ $wp }}: - Actual: {{ printf "%8s" $t.Done.AsDay }} ({{ printf "%5.2f%%" $t.Percent }}){{with $t.Open }} !Todo!: {{printf "%8s" .AsDay }}{{end}} - Per Task: {{- range $n, $t := $t.Tasks }} - - {{ $n }}:{{ $tt := $p.TotalWPTask $wp $n $start $end }} + - {{ $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 }} ({{ printf "%5.2f%%" $t.Percent }}){{with $tt.Open }} !Todo!: {{printf "%8s" .AsDay}}{{end}} {{ end }} {{ end }} - -## Overview of WP Status - -``` -{{- range .ParallelWPTotals }} -{{.}} -{{- end}} -``` |