go-transmission-stats/template.html

69 lines
1.2 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-03-25 23:33:51 +01:00
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>
<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>