1
0
mirror of https://github.com/thebaer/tildes.git synced 2018-07-20 07:15:21 +00:00
tildes/templates/scores.html
2015-02-10 22:04:03 -05:00

47 lines
850 B
HTML

{{define "table"}}
<html>
<head>
<title>{{.Title}}</title>
<link type="text/css" rel="stylesheet" href="tilde.css" />
<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>
</head>
<body id="hello">
<h1>{{.Title}}</h1>
<p>Last Updated: <time datetime="{{.Updated}}">{{.UpdatedForHumans}}</time></p>
<p style="font-size: 1.2em">Current jackpot: <strong>{{.Jackpot}}</strong></p>
<table>
<tr>
<th>&nbsp;</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}}