go-transmission-stats/template.html

70 lines
1.1 KiB
HTML
Raw Normal View History

2023-03-25 05:14:51 +01:00
<!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>
2023-04-01 15:08:13 +02:00
<style>
body {
max-width: 96%;
}
</style>
2023-03-25 05:14:51 +01:00
<body>
<div class="container">
<h1>Torrent Stats</h1>
<p>As of {{.Date}}</p>
<h2>Session Stats</h2>
2023-04-01 15:08:13 +02:00
<table>
2023-03-25 05:14:51 +01:00
{{range .SessionStats}}
<tr>
<td>{{.Label}}</td>
<td>{{.Value}}</td>
</tr>
{{end}}
</table>
<h2>Current Stats</h2>
2023-04-01 15:08:13 +02:00
<table>
2023-03-25 05:14:51 +01:00
{{range .CurrentStats}}
<tr>
<td>{{.Label}}</td>
<td>{{.Value}}</td>
</tr>
{{end}}
</table>
<h2>Cumulative Stats</h2>
2023-04-01 15:08:13 +02:00
<table>
2023-03-25 05:14:51 +01:00
{{range .CumulativeStats}}
<tr>
<td>{{.Label}}</td>
<td>{{.Value}}</td>
</tr>
{{end}}
</table>
<h2>Torrent Info</h2>
2023-04-01 15:08:13 +02:00
<table>
2023-03-25 05:14:51 +01:00
<tr>
2023-04-01 14:55:07 +02:00
<th>Name</th>
<th>Date Added</th>
<th>Total Size</th>
<th>Peers Connected</th>
<th>Peers Getting From Us</th>
2023-03-25 05:14:51 +01:00
</tr>
2023-04-01 14:55:07 +02:00
{{range .TorrentInfo}}
2023-03-25 05:14:51 +01:00
<tr>
2023-04-01 14:55:07 +02:00
<td>{{.Name}}</td>
2023-03-25 05:14:51 +01:00
<td>{{.DateAdded}}</td>
2023-03-26 00:19:02 +01:00
<td>{{.TotalSize}}</td>
<td>{{.PeersConnected}}</td>
<td>{{.PeersGettingFromUs}}</td>
2023-03-25 05:14:51 +01:00
</tr>
2023-04-01 14:55:07 +02:00
{{end}}
2023-03-25 05:14:51 +01:00
</table>
</div>
</body>
</html>