2015-01-27 16:00:05 +00:00
|
|
|
{{define "table"}}
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
|
|
|
|
<title>{{.Title}}</title>
|
|
|
|
|
|
|
|
<link type="text/css" rel="stylesheet" href="tilde.css" />
|
2015-02-11 03:04:03 +00:00
|
|
|
<style type="text/css">
|
|
|
|
td + td + td, td+td+td+td+td+td, td+td+td+td+td+td+td+td {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
td + td + td + td + td {
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
td + td + td + td {
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
</style>
|
2015-01-27 16:00:05 +00:00
|
|
|
|
|
|
|
</head>
|
|
|
|
<body id="hello">
|
|
|
|
|
2015-03-08 17:57:13 +00:00
|
|
|
<h1>{{.Title}}</h1> <span class="updated"><a href="/~bear/">↑ up</a></span>
|
2015-01-27 16:00:05 +00:00
|
|
|
<p>Last Updated: <time datetime="{{.Updated}}">{{.UpdatedForHumans}}</time></p>
|
|
|
|
|
2015-02-11 02:59:03 +00:00
|
|
|
<p style="font-size: 1.2em">Current jackpot: <strong>{{.Jackpot}}</strong></p>
|
|
|
|
|
2015-01-27 16:00:05 +00:00
|
|
|
<table>
|
|
|
|
<tr>
|
2015-01-27 21:18:16 +00:00
|
|
|
<th> </th>
|
2015-01-27 16:00:05 +00:00
|
|
|
{{range .Table.Headers}}
|
|
|
|
<th>{{.}}</th>
|
|
|
|
{{end}}
|
|
|
|
</tr>
|
2015-01-27 21:18:16 +00:00
|
|
|
{{range $i, $r := .Table.Rows}}
|
2015-01-27 16:00:05 +00:00
|
|
|
<tr>
|
2015-01-27 21:18:16 +00:00
|
|
|
<td>{{add $i 1}}</td>
|
2015-01-27 16:00:05 +00:00
|
|
|
{{range .Data}}
|
|
|
|
<td>{{.}}</td>
|
|
|
|
{{end}}
|
|
|
|
</tr>
|
|
|
|
{{end}}
|
|
|
|
</table>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
{{end}}
|