{% extends "layout.html" %}
{% block title %}Animes torrents search engine - {{ request.args.get('q') }}{% endblock %}
{% block body %}
<table class="table is-bordered is-striped is-narrow is-fullwidth is-hoverable search">
<thead>
<tr>
<th>Name</th>
<th>
<i class="fa fa-comment"></i>
</th>
<th>Link</th>
<th>Size</th>
<th>Date</th>
<i class="fa fa-arrow-up"></i>
<i class="fa fa-arrow-down"></i>
<i class="fa fa fa-check"></i>
</tr>
</thead>
<tbody>
{% for connector in connectors %}
{% for torrent in connector.data %}
{% if not loop.index0 %}
<th colspan="8">{{ connector.title }}</th>
{% endif %}
<tr class="{{ torrent.class }}">
<td>
{{ torrent.lang.value }}
<a href="{{ torrent.href }}" target="_blank">
{{ torrent.name|safe }}
</a>
</td>
{% if connector.is_light %}
<td colspan="7">
{{ torrent.type }}
{% else %}
{{ torrent.comment|safe }}
{{ torrent.link|safe }}
{{ torrent.size }}
{{ torrent.date }}
{{ torrent.seeds }}
{{ torrent.leechs }}
{{ torrent.downloads }}
{% endfor %}
{% if connector.is_more %}
<th colspan="8">
<a href="{{ connector.get_full_search_url() }}" target="_blank">More ...</a>
{% if connector.on_error %}
<tr class="is-danger">
<th colspan="8" class="error">
Error, can't grab data from {{ connector.title }}
<a href="{{ connector.get_full_search_url() }}" target="_blank">Go to the website -></a>
</tbody>
</table>
{% endblock %}