Use compact table format

This commit is contained in:
Jeffrey Serio 2023-04-01 07:55:07 -05:00
parent 84fa325aac
commit 3508070425

View File

@ -42,30 +42,24 @@
</table> </table>
<h2>Torrent Info</h2> <h2>Torrent Info</h2>
{{range .TorrentInfo}}
<table style="width:100%"> <table style="width:100%">
<tr> <tr>
<td>Name</td> <th>Name</th>
<td class="name">{{.Name}}</td> <th>Date Added</th>
<th>Total Size</th>
<th>Peers Connected</th>
<th>Peers Getting From Us</th>
</tr> </tr>
{{range .TorrentInfo}}
<tr> <tr>
<td>Date Added</td> <td>{{.Name}}</td>
<td>{{.DateAdded}}</td> <td>{{.DateAdded}}</td>
</tr>
<tr>
<td>Total Size</td>
<td>{{.TotalSize}}</td> <td>{{.TotalSize}}</td>
</tr>
<tr>
<td>Peers Connected</td>
<td>{{.PeersConnected}}</td> <td>{{.PeersConnected}}</td>
</tr>
<tr>
<td>Peers Getting From Us</td>
<td>{{.PeersGettingFromUs}}</td> <td>{{.PeersGettingFromUs}}</td>
</tr> </tr>
</table>
{{end}} {{end}}
</table>
</div> </div>
</body> </body>
</html> </html>