84 lines
2.7 KiB
HTML
84 lines
2.7 KiB
HTML
{{define "stats"}}
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>Alias</title>
|
|
<script src="/assets/tailwind.css"></script>
|
|
<link rel="stylesheet" href="/assets/style.css"/>
|
|
<script src="/assets/htmx.min.js"></script>
|
|
<script src="/assets/htmx.sse.js"></script>
|
|
<script src="/assets/helpers.js"></script>
|
|
<meta charset="utf-8" name="viewport" content="width=device-width,initial-scale=1"/>
|
|
<link rel="icon" sizes="64x64" href="/assets/favicon/wolfhead_negated.ico"/>
|
|
<style type="text/css">
|
|
body{
|
|
background-color: #0C1616FF;
|
|
color: #8896b2;
|
|
max-width: 1000px;
|
|
min-width: 0;
|
|
margin: 2em auto !important;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
line-height: 1.5;
|
|
font-size: 16px;
|
|
font-family: Open Sans,Arial;
|
|
text-align: center;
|
|
display: block;
|
|
}
|
|
a{
|
|
color: #00a2e7;
|
|
}
|
|
a:visited{
|
|
color: #ca1a70;
|
|
}
|
|
table {
|
|
border-collapse: separate !important;
|
|
border-spacing: 10px 10px;
|
|
border: 1px solid white;
|
|
}
|
|
tr{
|
|
border: 1px solid white;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="ancestor">
|
|
<div class="container mx-auto p-4">
|
|
<h1 class="text-2xl font-bold mb-4">Player Leaderboard</h1>
|
|
<div class="mb-4">
|
|
<a href="/" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">
|
|
Home
|
|
</a>
|
|
</div>
|
|
<div class="overflow-x-auto">
|
|
<table class="min-w-full bg-white">
|
|
<thead class="bg-gray-800 text-white">
|
|
<tr>
|
|
<th class="py-2 px-4">Player</th>
|
|
<th class="py-2 px-4">Games Played</th>
|
|
<th class="py-2 px-4">Games Won</th>
|
|
<th class="py-2 px-4">Games Lost</th>
|
|
<th class="py-2 px-4">Mime Winrate</th>
|
|
<th class="py-2 px-4">Guesser Winrate</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="text-gray-700">
|
|
{{range .}}
|
|
<tr>
|
|
<td class="py-2 px-4 border">{{.PlayerUsername}}</td>
|
|
<td class="py-2 px-4 border">{{.GamesPlayed}}</td>
|
|
<td class="py-2 px-4 border">{{.GamesWon}}</td>
|
|
<td class="py-2 px-4 border">{{.GamesLost}}</td>
|
|
<td class="py-2 px-4 border">{{printf "%.2f" .MimeWinrate}}</td>
|
|
<td class="py-2 px-4 border">{{printf "%.2f" .GuesserWinrate}}</td>
|
|
</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
{{end}}
|