go-transmission-stats/html/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>
2023-07-25 02:48:19 +02:00
<link rel="icon" type="image/x-icon" href="coffee.svg">
2023-08-21 09:02:50 +02:00
<link href="torrentstats.css" rel="stylesheet">
2023-03-25 05:14:51 +01:00
</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>
2023-04-16 23:45:38 +02:00
<th>Activity Date</th>
2023-04-01 14:55:07 +02:00
<th>Total Size</th>
2023-04-16 23:45:38 +02:00
<th>Leechers</th>
<th>Seeders</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-04-16 23:45:38 +02:00
<td>{{.ActivityDate}}</td>
2023-03-26 00:19:02 +01:00
<td>{{.TotalSize}}</td>
2023-04-16 23:45:38 +02:00
<td>{{.Leechers}}</td>
<td>{{.Seeders}}</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>