Support rank
property in reports
This presents the items as an ordered list, rather than an unordered list.
This commit is contained in:
parent
917025c260
commit
72226b065d
@ -32,6 +32,7 @@ type (
|
|||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
Summary []template.HTML `json:"summary"`
|
Summary []template.HTML `json:"summary"`
|
||||||
Details []template.HTML `json:"details"`
|
Details []template.HTML `json:"details"`
|
||||||
|
Rank []template.HTML `json:"rank"`
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -15,6 +15,9 @@
|
|||||||
{{if .Details}}<ul>
|
{{if .Details}}<ul>
|
||||||
{{range .Details}}<li>{{.}}</li>{{end}}
|
{{range .Details}}<li>{{.}}</li>{{end}}
|
||||||
</ul>{{end}}
|
</ul>{{end}}
|
||||||
|
{{if .Rank}}<ol>
|
||||||
|
{{range .Rank}}<li>{{.}}</li>{{end}}
|
||||||
|
</ol>{{end}}
|
||||||
<hr />
|
<hr />
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user