Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Acessar
matt
/
life-report
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Pull requests
0
Versões
0
Atividade
Ver código fonte
Support `rank` property in reports
This presents the items as an ordered list, rather than an unordered list.
master
Matt Baer
8 anos atrás
pai
917025c260
commit
72226b065d
2 arquivos alterados
com
4 adições
e
0 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+1
-0
lifereport.go
+3
-0
report.tmpl
+ 1
- 0
lifereport.go
Ver arquivo
@@ -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
Ver arquivo
@@ -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>
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar