Aberrant/templates/index.html

87 lines
2.3 KiB
HTML
Raw Permalink Normal View History

2019-01-16 09:33:36 -05:00
<!DOCTYPE html>
<html>
<head>
<title>Aberrant</title>
2019-09-01 14:44:54 -04:00
<link rel="stylesheet" type="text/css" href="/static/aberrant.css">
2019-02-15 10:01:33 -05:00
<script>
2019-09-01 16:48:45 -04:00
const ws_uri = "{{ request.app.router['ws'].url_for() }}";
2019-02-15 10:01:33 -05:00
</script>
2019-09-01 16:48:45 -04:00
<script type="text/javascript" src="/static/aberrant.js"></script>
2019-02-15 10:01:33 -05:00
<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>
2019-09-01 16:48:45 -04:00
<th class="total_size_str">Size</th>
2019-02-15 07:33:55 -05:00
<th class="state">State</th>
2019-09-01 16:48:45 -04:00
<th class="downrate_str">DL</th>
<th class="down_percent"></th>
<th class="eta_str">ETA</th>
<th class="uprate_str">UL</th>
2019-02-15 07:33:55 -05:00
<th class="tracker">Tracker</th>
2019-09-01 16:48:45 -04:00
<th class="rtorrent_id">RT id</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>
2019-09-01 16:48:45 -04:00
<td class="total_size_str">{{ torrent.total_size_str }}</td>
2019-02-14 15:00:21 -05:00
<td class="state">{{ torrent.state }}</td>
2019-09-01 16:48:45 -04:00
<td class="downrate_str">{{ torrent.downrate_str }}</td>
<td class="down_percent">{{ torrent.down_percent }}</td>
<td class="eta_str">{{ torrent.eta_str }}</td>
<td class="uprate_str">{{ torrent.uprate_str }}</td>
2019-02-15 07:33:55 -05:00
<td class="tracker">{{ torrent.tracker }}</td>
2019-09-01 16:48:45 -04:00
<td class="rtorrent_id">{{ torrent.rtorrent_id }}</td>
2019-02-13 10:20:55 -05:00
</tr>
{% endfor %}
</tbody>
</table>
2019-09-01 16:48:45 -04:00
<template id="torrent_template">
<tr>
<td class="name"></td>
<td class="total_size_str"></td>
<td class="state"></td>
<td class="downrate_str"></td>
<td class="down_percent"></td>
<td class="eta_str"></td>
<td class="uprate_str"></td>
<td class="tracker"></td>
<td class="rtorrent_id"></td>
</tr>
</template>
2019-02-19 13:18:05 -05:00
<br>
2019-02-18 10:32:19 -05:00
<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>
2019-02-18 10:32:19 -05:00
</table>
2019-09-12 21:05:25 -04:00
<template id="tracker_template">
<tr>
<td class="tracker_stat"></td>
<td class="hashing"></td>
<td class="error"></td>
<td class="total"></td>
</tr>
</template>
2019-01-16 09:33:36 -05:00
</body>
</html>