59 lines
1.5 KiB
HTML
59 lines
1.5 KiB
HTML
{% extends "page.html" %}
|
|
{% block toolbar %}
|
|
<a class="nav-item is-active" href="/home">Home</a>
|
|
{% endblock %}
|
|
|
|
{% block main %}
|
|
<header class="flex items-center py1 border-bottom">
|
|
<h1 class="m0">Sorted</h1>
|
|
</header>
|
|
<section class="mb3">
|
|
<h2>Success</h2>
|
|
<table>
|
|
<tr>
|
|
<th>torrent</th>
|
|
<th>result</th>
|
|
</tr>
|
|
{% for torrent, result, reason in success_torrents %}
|
|
<tr>
|
|
<td>
|
|
{{ torrent.name }}
|
|
<ul>
|
|
{% for f in torrent.files %}
|
|
<li>{{ f.path }} - {{ f.size }} B</li> <!-- TODO nice size formatting-->
|
|
{% endfor %}
|
|
</ul>
|
|
</td>
|
|
<td>{{ result }}{% if reason %} - {{ reason }}{% endif %}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
|
|
<h2>Failures</h2>
|
|
<table>
|
|
<tr>
|
|
<th>torrent</th>
|
|
<th>result</th>
|
|
</tr>
|
|
{% for torrent, result, reason in failed_torrents %}
|
|
<tr>
|
|
<td>
|
|
{{ torrent.name }}
|
|
<ul>
|
|
{% for f in torrent.files %}
|
|
<li>{{ f.path }} - {{ f.size }} B</li> <!-- TODO nice size formatting-->
|
|
{% endfor %}
|
|
</ul>
|
|
</td>
|
|
<td>{{ result }}{% if reason %} - {{ reason }}{% endif %}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</section>
|
|
|
|
{% if not failed_torrents %}
|
|
<meta http-equiv="refresh" content="3;URL='/home'" />
|
|
{% endif %}
|
|
|
|
{% endblock %}
|