This repository has been archived on 2023-10-01. You can view files and clone it, but cannot push or open issues or pull requests.
PyNyaaTa/pynyaata/templates/search.html

92 lines
3.0 KiB
HTML
Raw Permalink Normal View History

2019-11-30 15:52:13 +00:00
{% extends "layout.html" %}
2019-12-17 14:44:39 +00:00
{% block title %}- Search for "{{ request.args.get('q') }}"{% endblock %}
2019-11-30 15:52:13 +00:00
{% block body %}
2019-12-11 17:43:14 +00:00
<table class="table is-bordered is-striped is-narrow is-fullwidth is-hoverable">
2019-11-30 15:52:13 +00:00
<thead>
<tr>
<th>Name</th>
<th>
<i class="fa fa-comment"></i>
</th>
<th>Link</th>
<th>Size</th>
<th>Date</th>
<th>
<i class="fa fa-arrow-up"></i>
</th>
<th>
<i class="fa fa-arrow-down"></i>
</th>
<th>
<i class="fa fa fa-check"></i>
</th>
</tr>
</thead>
<tbody>
{% for connector in connectors %}
2020-10-19 21:15:58 +00:00
{% if connector.data|length > 0 or connector.is_more %}
<th colspan="8">{{ connector.title }}</th>
{% endif %}
2019-11-30 15:52:13 +00:00
2020-10-19 21:15:58 +00:00
{% for torrent in connector.data %}
2019-11-30 22:42:35 +00:00
<tr class="{{ torrent.class }}">
<td>
2021-01-30 18:40:36 +00:00
{{ torrent.vf|flagify }}
2019-11-30 22:42:35 +00:00
<a href="{{ torrent.href }}" target="_blank">
2019-12-05 17:53:23 +00:00
{{ torrent.name|boldify|safe }}
2019-11-30 22:42:35 +00:00
</a>
</td>
{% if connector.is_light %}
<td colspan="7">
{{ torrent.type }}
</td>
{% else %}
<td>
{{ torrent.comment|safe }}
</td>
<td>
{{ torrent.link|safe }}
</td>
<td>
{{ torrent.size }}
</td>
<td>
{{ torrent.date }}
</td>
<td>
{{ torrent.seeds }}
</td>
<td>
{{ torrent.leechs }}
</td>
<td>
{{ torrent.downloads }}
</td>
{% endif %}
</tr>
2019-11-30 17:09:30 +00:00
{% endfor %}
2019-11-30 22:42:35 +00:00
{% if connector.is_more %}
<tr>
<th colspan="8">
<a href="{{ connector.get_full_search_url() }}" target="_blank">More ...</a>
</th>
</tr>
{% endif %}
{% 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>
</th>
</tr>
{% endif %}
2019-11-30 15:52:13 +00:00
{% endfor %}
</tbody>
</table>
{% endblock %}