life-report/report.tmpl
Matt Baer 72226b065d Support rank property in reports
This presents the items as an ordered list, rather than an unordered
list.
2016-03-31 14:45:48 -04:00

26 lines
580 B
Cheetah

<!DOCTYPE html>
<html>
<head>
<title>life report.</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
<div id="wrap">
<h1>Ep. {{.Num}}: {{.Month}}</h1>
{{if .Summary}}<p>{{.Summary}}</p>{{end}}
{{range .Sections}}<h2>My {{.Title}}</h2>
{{if .Summary}}
{{range .Summary}}<p>{{.}}</p>{{end}}
{{end}}
{{if .Details}}<ul>
{{range .Details}}<li>{{.}}</li>{{end}}
</ul>{{end}}
{{if .Rank}}<ol>
{{range .Rank}}<li>{{.}}</li>{{end}}
</ol>{{end}}
<hr />
{{end}}
</div>
</body>
</html>