This website works better with JavaScript.
Home
Explore
Help
Sign In
matt
/
life-report
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Activity
Browse Source
Support `rank` property in reports
This presents the items as an ordered list, rather than an unordered list.
master
Matt Baer
8 years ago
parent
917025c260
commit
72226b065d
2 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
lifereport.go
+3
-0
report.tmpl
+ 1
- 0
lifereport.go
View File
@@ -32,6 +32,7 @@ type (
Title string `json:"title"`
Summary []template.HTML `json:"summary"`
Details []template.HTML `json:"details"`
Rank []template.HTML `json:"rank"`
}
)
+ 3
- 0
report.tmpl
View File
@@ -15,6 +15,9 @@
{{if .Details}}<ul>
{{range .Details}}<li>{{.}}</li>{{end}}
</ul>{{end}}
{{if .Rank}}<ol>
{{range .Rank}}<li>{{.}}</li>{{end}}
</ol>{{end}}
<hr />
{{end}}
</div>
Write
Preview
Loading…
Cancel
Save