Aberrant/templates/index.html

45 lines
1.1 KiB
HTML
Raw Normal View History

2019-01-16 09:33:36 -05:00
<!DOCTYPE html>
<html>
<head>
<title>Aberrant</title>
2019-02-14 15:00:21 -05:00
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='aberrant.css') }}">
2019-02-15 10:01:33 -05:00
<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>
2019-01-16 09:33:36 -05:00
</head>
<body>
2019-02-14 15:00:21 -05:00
<table id="torrents">
2019-02-13 10:20:55 -05:00
<thead>
<tr>
2019-02-15 07:33:55 -05:00
<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>
2019-02-13 10:20:55 -05:00
</tr>
</thead>
<tbody>
{% for torrent in torrents %}
<tr>
2019-02-14 15:00:21 -05:00
<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>
2019-02-15 07:33:55 -05:00
<td class="tracker">{{ torrent.tracker }}</td>
2019-02-13 10:20:55 -05:00
</tr>
{% endfor %}
</tbody>
</table>
2019-02-18 10:32:19 -05:00
<table id="tracker_stats">
{% for tracker, count in tracker_stats.items() %}
<tr>
<td>{{ tracker }}</td>
<td>{{ count }}</td>
</tr>
{% endfor %}
</table>
2019-01-16 09:33:36 -05:00
</body>
</html>