diff options
author | Özgür Kesim <oec@kesim.org> | 2024-11-29 11:56:03 +0100 |
---|---|---|
committer | Özgür Kesim <oec@kesim.org> | 2024-11-29 11:56:03 +0100 |
commit | d31e711d3a26bb5fa322baf28c51439951c5ae7f (patch) | |
tree | 2f53282b0501ce3bf8837a511d875a5943298e03 /templates | |
parent | 55e2ed7f1fa97e01e0f655b8de5196d8ee77ed43 (diff) |
layout
Diffstat (limited to 'templates')
-rw-r--r-- | templates/report.t | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/templates/report.t b/templates/report.t index 39e2a19..b97c2d7 100644 --- a/templates/report.t +++ b/templates/report.t @@ -6,7 +6,7 @@ Beneficiary: {{.Beneficiary}} {{- $p := . }} {{- $totals := .Totals }} -# Planning +# Planning, as of {{.Today}} Budgeted : {{ printf "%8s" $totals.Budgeted }} Planned : {{ printf "%8s" $totals.Planned }}{{with $totals.Unaccounted}} @@ -20,14 +20,14 @@ Time left: {{ printf "%8s" ($p.AsDaysAmount (len $p.DaysRemaining)) }} * {{len $ {{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: + - 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}} + - {{ $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 }} |