45 lines
1.1 KiB
HTML
45 lines
1.1 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="state">State</th>
|
|
<th class="downrate">DL</th>
|
|
<th class="uprate">UL</th>
|
|
<th class="tracker">Tracker</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for torrent in torrents %}
|
|
<tr>
|
|
<td class="name">{{ torrent.name }}</td>
|
|
<td class="state">{{ torrent.state }}</td>
|
|
<td class="downrate">{{ torrent.downrate_str }}</td>
|
|
<td class="uprate">{{ torrent.uprate_str }}</td>
|
|
<td class="tracker">{{ torrent.tracker }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
<table id="tracker_stats">
|
|
{% for tracker, count in tracker_stats.items() %}
|
|
<tr>
|
|
<td>{{ tracker }}</td>
|
|
<td>{{ count }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</body>
|
|
</html>
|