go-transmission-stats/template.html
2023-03-25 18:19:02 -05:00

72 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>
{{range .TorrentInfo}}
<table style="width:100%">
<tr>
<td>Name</td>
<td class="name">{{.Name}}</td>
</tr>
<tr>
<td>Date Added</td>
<td>{{.DateAdded}}</td>
</tr>
<tr>
<td>Total Size</td>
<td>{{.TotalSize}}</td>
</tr>
<tr>
<td>Peers Connected</td>
<td>{{.PeersConnected}}</td>
</tr>
<tr>
<td>Peers Getting From Us</td>
<td>{{.PeersGettingFromUs}}</td>
</tr>
</table>
{{end}}
</div>
</body>
</html>