summaryrefslogtreecommitdiff
path: root/templates/report.t
blob: 48c849c31960155f61fd8528392b1950b881c25a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Project:     {{.Name}}
Grant:       {{.Grant}}
Start:       {{.Start}}
End:         {{.End}}
Beneficiary: {{.Beneficiary}}

{{ range $id, $wp := .Workpackages }}
## Workpackage {{ $id }}: {{ $wp.Title }}
{{ range $tid, $task := $wp.Tasks}}
    {{$task.ID}}: {{ $task.Title }}
        Budget:    {{ $task.Budget.AsMonth }}
{{ end }}

{{ end }}

|  Date      |   Days   |   WP's   |
|:-----------|---------:|:--------:|
{{- range $d, $e := .Timeline }}
| {{ $d }} | {{ printf "%8s" $e.Total.AsDay }} | {{ printf "%8s" $e.WPs }} |
{{- end }}
{{- $tl := .Timeline }}

{{/* }}
# Days
{{ range .Days }}
{{if .IsWeekend }}({{else}} {{end}}{{.Date}}{{ if .IsWeekend }}){{else}} {{end -}}
{{ with $e := index $tl .Date }} {{ printf "%8s" $e.Total.AsDay }} {{ printf "%8s" $e.WPs }} {{ end }}
{{- end }}
{{ */}}