go-transmission-stats/template.html
2023-04-01 07:57:54 -05:00

66 lines
1.2 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>hyperreal.coffee: Torrent Stats</title>
<link rel="icon" type="image/x-icon" href="coffee.svg">
<link href="catppuccin.css" rel="stylesheet">
</head>
<body>
<div class="container">
<h1>Torrent Stats</h1>
<p>As of {{.Date}}</p>
<h2>Session Stats</h2>
<table style="width:100%">
{{range .SessionStats}}
<tr>
<td>{{.Label}}</td>
<td>{{.Value}}</td>
</tr>
{{end}}
</table>
<h2>Current Stats</h2>
<table style="width:100%">
{{range .CurrentStats}}
<tr>
<td>{{.Label}}</td>
<td>{{.Value}}</td>
</tr>
{{end}}
</table>
<h2>Cumulative Stats</h2>
<table style="width:100%">
{{range .CumulativeStats}}
<tr>
<td>{{.Label}}</td>
<td>{{.Value}}</td>
</tr>
{{end}}
</table>
<h2>Torrent Info</h2>
<table style="width:100%">
<tr>
<th>Name</th>
<th>Date Added</th>
<th>Total Size</th>
<th>Peers Connected</th>
<th>Peers Getting From Us</th>
</tr>
{{range .TorrentInfo}}
<tr>
<td>{{.Name}}</td>
<td>{{.DateAdded}}</td>
<td>{{.TotalSize}}</td>
<td>{{.PeersConnected}}</td>
<td>{{.PeersGettingFromUs}}</td>
</tr>
{{end}}
</table>
</div>
</body>
</html>