1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-26 09:14:06 +08:00
2019-11-16 01:27:47 +08:00

12 lines
492 B
Cheetah

{{define "table"}}<table class="commit" data-file='{{options . "file"}}' data-name='{{options . "name"}}' data-data='{{options . "data"}}'
data-commit_time='{{options . "prev_time"}}' data-commit_data='{{options . "prev_data"}}'>{{range $i, $line := .|trans}}
{{if eq $i 0}}
<tr>{{range $i, $v := $line}}<th>{{$v}}</th>{{end}}</tr>
{{else}}
<tr>{{range $i, $v := $line}}<td>{{$v}}</td>{{end}}</tr>
{{end}}
{{end}}</table>{{end}}
{{define "code"}}<div>{{results .}}</div>{{end}}