1
0
mirror of https://github.com/thebaer/tildes.git synced 2018-07-20 07:15:21 +00:00
tildes/templates/scores.html

47 lines
911 B
HTML
Raw Normal View History

{{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>
</head>
<body id="hello">
2015-03-08 17:57:13 +00:00
<h1>{{.Title}}</h1> <span class="updated"><a href="/~bear/">&uarr; up</a></span>
<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>
<table>
<tr>
2015-01-27 21:18:16 +00:00
<th>&nbsp;</th>
{{range .Table.Headers}}
<th>{{.}}</th>
{{end}}
</tr>
2015-01-27 21:18:16 +00:00
{{range $i, $r := .Table.Rows}}
<tr>
2015-01-27 21:18:16 +00:00
<td>{{add $i 1}}</td>
{{range .Data}}
<td>{{.}}</td>
{{end}}
</tr>
{{end}}
</table>
</body>
</html>
{{end}}