diff options
Diffstat (limited to 'templates/wp-total.t')
-rw-r--r-- | templates/wp-total.t | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/wp-total.t b/templates/wp-total.t new file mode 100644 index 0000000..a5fd93a --- /dev/null +++ b/templates/wp-total.t @@ -0,0 +1,12 @@ +{{ $p := .Project -}} +Total for {{ .WP }}: + - Budgeted: {{ printf "%8s" .Total.Budgeted.AsDay }} + - Planned: {{ printf "%8s" .Total.Planned.AsDay }}{{with .Total.Unaccounted }} !Unaccounted: {{printf "%8s" .AsDay}}{{end}} + - Actual: {{ printf "%8s" .Total.Actual.AsDay }} + - Per Task: +{{- range $n, $t := .Tasks }} + - {{ $t.ID }} ({{ $n }}):{{ $tt := $p.TotalWPTask .WP $t }} + - Budgeted: {{ printf "%8s" $tt.Budgeted.AsDay }} + - Planned: {{ printf "%8s" $tt.Planned.AsDay }}{{with $tt.Unaccounted }} !Unaccounted: {{printf "%8s" .AsDay}}{{end}} + - Actual: {{ printf "%8s" $tt.Actual.AsDay }} +{{ end }} |