mirror of
https://github.com/thebaer/tildes.git
synced 2018-07-20 07:15:21 +00:00
34 lines
543 B
HTML
34 lines
543 B
HTML
{{define "table"}}
|
|
<html>
|
|
<head>
|
|
|
|
<title>{{.Title}}</title>
|
|
|
|
<link type="text/css" rel="stylesheet" href="tilde.css" />
|
|
|
|
</head>
|
|
<body id="hello">
|
|
|
|
<h1>{{.Title}}</h1>
|
|
<p>Last Updated: <time datetime="{{.Updated}}">{{.UpdatedForHumans}}</time></p>
|
|
|
|
<table>
|
|
<tr>
|
|
<th> </th>
|
|
{{range .Table.Headers}}
|
|
<th>{{.}}</th>
|
|
{{end}}
|
|
</tr>
|
|
{{range $i, $r := .Table.Rows}}
|
|
<tr>
|
|
<td>{{add $i 1}}</td>
|
|
{{range .Data}}
|
|
<td>{{.}}</td>
|
|
{{end}}
|
|
</tr>
|
|
{{end}}
|
|
</table>
|
|
</body>
|
|
</html>
|
|
{{end}}
|