mirror of
https://codeberg.org/hyperreal/go-transmission-stats
synced 2024-11-01 16:53:10 +01:00
84 lines
1.4 KiB
HTML
84 lines
1.4 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>
|
|
<style>
|
|
table, th, td {
|
|
border:1px solid #7f849c;
|
|
border-collapse: collapse;
|
|
padding: 10px;
|
|
}
|
|
table {
|
|
margin-top: 24px;
|
|
}
|
|
.name {
|
|
color: #a6e3a1;
|
|
}
|
|
.container {
|
|
margin-bottom: 64px;
|
|
}
|
|
</style>
|
|
<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>
|
|
<p>In descending order from the most total uploaded.</p>
|
|
{{range .TorrentInfo}}
|
|
<table style="width:100%">
|
|
<tr>
|
|
<td>Name</td>
|
|
<td class="name">{{.Name}}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Hash</td>
|
|
<td>{{.HashString}}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Date Added</td>
|
|
<td>{{.DateAdded}}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Total Uploaded</td>
|
|
<td>{{.UploadedEver}}</td>
|
|
</tr>
|
|
</table>
|
|
{{end}}
|
|
</div>
|
|
</body>
|
|
</html>
|