66 lines
1.8 KiB
HTML
66 lines
1.8 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Aberrant</title>
|
|
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='aberrant.css') }}">
|
|
<script type="text/javascript" src="{{ url_for('static', filename='aberrant.js') }}"></script>
|
|
<script>
|
|
const get_torrents_uri = "{{ url_for('get_active_torrents') }}";
|
|
</script>
|
|
<script>window.onload = load;</script>
|
|
</head>
|
|
<body>
|
|
<table id="torrents">
|
|
<thead>
|
|
<tr>
|
|
<th class="name">Name</th>
|
|
<th class="sizeTotal">Size</th>
|
|
<th class="state">State</th>
|
|
<th class="downrate">DL</th>
|
|
<th class="downPercent">%</th>
|
|
<th class="eta">ETA</th>
|
|
<th class="uprate">UL</th>
|
|
<th class="tracker">Tracker</th>
|
|
<th class="rt_id">RT id</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for torrent in torrents %}
|
|
<tr>
|
|
<td class="name">{{ torrent.name }}</td>
|
|
<td class="totalSize">{{ torrent.total_size_str }}</td>
|
|
<td class="state">{{ torrent.state }}</td>
|
|
<td class="downrate">{{ torrent.downrate_str }}</td>
|
|
<td class="downPercent">{{ torrent.down_percent }}%</td>
|
|
<td class="eta">{{ torrent.eta_str }}</td>
|
|
<td class="uprate">{{ torrent.uprate_str }}</td>
|
|
<td class="tracker">{{ torrent.tracker }}</td>
|
|
<td class="rt_id">{{ torrent.rtorrent_id }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
<br>
|
|
<table id="tracker_stats">
|
|
<thead>
|
|
<tr>
|
|
<th class="tracker_stat">Tracker</th>
|
|
<th class="hashing">Hashing</th>
|
|
<th class="error">Error</th>
|
|
<th class="total">Total</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for tracker, stats in tracker_stats.items() %}
|
|
<tr>
|
|
<td class="tracker_stat">{{ tracker }}</td>
|
|
<td class="hashing">{{ stats[0] }}</td>
|
|
<td class="error">{{ stats[1] }}</td>
|
|
<td class="total">{{ stats[2] }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</body>
|
|
</html>
|