58 lines
1.6 KiB
HTML
58 lines
1.6 KiB
HTML
{% extends "page.html" %}
|
|
{% block body %}
|
|
|
|
<div class="torrents">
|
|
<div class="toolbar">
|
|
<form action="/" method="post">
|
|
<input name="action" type="submit" value="refresh">
|
|
<input name="action" type="submit" value="update">
|
|
</form>
|
|
</div>
|
|
<h2>Completed</h2>
|
|
<table>
|
|
<tr>
|
|
<th>hash</th>
|
|
<th>name</th>
|
|
<th>path</th>
|
|
<th>dest</th>
|
|
<th>status</th>
|
|
<th>actions</th>
|
|
</tr>
|
|
{% for torid, tor in torrents.items() %}{% if tor.is_finished %}
|
|
<tr>
|
|
<td>{{ torid[0:6] }}</td>
|
|
<td>{{ tor.name }}</td>
|
|
<td>{{ tor.save_path }}</td>
|
|
<td>x</td>
|
|
<td>{{ "complete" if tor.is_finished else "pending" }}</td>
|
|
<td>
|
|
<a href="/move?thash={{ torid }}"><button>Move</button></a>
|
|
<a href="/sort?thash={{ torid }}"><button>Sort</button></a>
|
|
</td>
|
|
</tr>
|
|
{% endif %}{% endfor %}
|
|
</table>
|
|
<h2>Pending</h2>
|
|
<table>
|
|
<tr>
|
|
<th>hash</th>
|
|
<th>name</th>
|
|
<th>path</th>
|
|
<th>progress</th>
|
|
<th>actions</th>
|
|
</tr>
|
|
{% for torid, tor in torrents.items() %}{% if not tor.is_finished %}
|
|
<tr>
|
|
<td>{{ torid[0:6] }}</td>
|
|
<td>{{ tor.name }}</td>
|
|
<td>{{ tor.save_path }}</td>
|
|
<td>{{ tor.progress }}%</td>
|
|
<td>
|
|
<a href="/foo"><button>Resume</button></a>
|
|
</td>
|
|
</tr>
|
|
{% endif %}{% endfor %}
|
|
</table>
|
|
</div>
|
|
|
|
{% endblock %} |