TorrentIndexer/templates/result.html

29 lines
883 B
HTML
Raw Permalink Normal View History

2015-02-06 22:03:42 +01:00
<!--
vim: ts=2 noexpandtab
-->
{% extends "index.html" %}
2017-12-29 08:03:17 +01:00
{% block title %}{{ super() }} - {{ _("Results") }}{% endblock%}
2015-02-06 22:03:42 +01:00
{% set active_page = "search" %}
{% block content %}
2017-12-28 04:19:04 +01:00
<link href="{{ url_for("static", filename="css/result.css") }}" rel="stylesheet">
2017-12-28 08:36:44 +01:00
<script src="{{ url_for("static", filename="js/main.js") }}"></script>
2017-12-28 04:19:04 +01:00
<table>
<tr>
2017-12-29 08:03:17 +01:00
<th>{{ _("Name") }}</th>
<th>{{ _("Size") }}</th>
<th>{{ _("Snatches") }}</th>
<th>{{ _("UL") }}</th>
<th>{{ _("DL") }}</th>
2017-12-28 04:19:04 +01:00
</tr>
2017-12-28 05:07:42 +01:00
{% for result in results %}
2017-12-28 04:19:04 +01:00
<tr>
2017-12-29 08:42:22 +01:00
<td><a href="/details?h={{ result[0] }}">{{ result[1] }}</a></td>
2017-12-29 02:56:15 +01:00
<td>{{ result[2] }}</td>
2018-04-01 18:14:22 +02:00
<td>{{ stats.get(result[0], {}).get("complete", _("N/A")) }}</td>
<td>{{ stats.get(result[0], {}).get("seeds", _("N/A")) }}</td>
<td>{{ stats.get(result[0], {}).get("peers", _("N/A")) }}</td>
2017-12-28 04:19:04 +01:00
</tr>
2017-12-28 05:07:42 +01:00
{% endfor %}
2017-12-28 04:19:04 +01:00
</table>
2015-02-06 22:03:42 +01:00
{% endblock content%}