Aberrant/templates/index.html
2019-02-15 10:01:33 -05:00

37 lines
983 B
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>
</body>
</html>