Docker container that powers the high scores page at nethack.jerryaldrichiii.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

71 lines
1.8 KiB

<!DOCTYPE HTML>
<html>
<head>
<title>{{.ServerName}}</title>
<meta charset="utf-8">
<meta name="Description" content="{{.ServerName}}">
<style>
body {
background: black;
background-color: black;
color: #00FF00;
font: calc(1vmax) monospace;
text-align: center;
}
table {
display: inline-block;
}
td, th, tr {
text-align: left;
padding-left: 1em;
padding-right: 1em;
}
tr:hover {
background-color: #101010;
}
.text-center {
text-align: center;
}
.text-right {
text-align: right;
}
h1 {
font-size: 175%;
}
p {
font-size: 100%;
}
.text-nowrap {
white-space: nowrap;
}
</style>
</head>
<body>
<h1>HIGH SCORES</h1>
<table>
<tr>
<th class="text-center">Rank</th>
<th>Score</th>
<th>Name</th>
<th class="text-center">Character</th>
<th class="text-center">Level</th>
<th class="text-center">Death Location</th>
<th>Death Reason</th>
<th class="text-center text-nowrap">Date</th>
</tr>
{{range $i, $e := .Records}}
<tr>
<td class="text-right">{{add $i 1}}</td>
<td>{{$e.Points}}</td>
<td>{{.Name}}</td>
<td class="text-center">{{$e.Role}} {{$e.Race}}<br>{{$e.Gender}} {{$e.Alignment}}</td>
<td class="text-center">{{$e.MaxLevel}}</td>
<td class="text-center">{{$e.DeathLocation}}<br>(Level {{$e.DeathDungeonLevel}})</td>
<td>{{$e.DeathReason}}</td>
<td class="text-center text-nowrap">{{$e.EndDate}}</td>
</tr>
{{end}}
</table>
<p>Join the party via: <b>ssh nethack@{{.ServerName}}</b></p>
<body>
</html>