2021-01-22 05:08:04 +01:00
|
|
|
<!doctype html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>SimpleerTube - Search Results</title>
|
2021-03-24 18:52:46 +01:00
|
|
|
<link rel="stylesheet" href="/static/style.css">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
2021-01-22 05:08:04 +01:00
|
|
|
</head>
|
|
|
|
<body>
|
2021-07-18 00:52:53 +02:00
|
|
|
<center>
|
2021-03-24 19:02:49 +01:00
|
|
|
<h2>SimpleerTube</h2>
|
2021-01-22 05:08:04 +01:00
|
|
|
<form action="/search" method="POST">
|
2021-03-24 19:02:49 +01:00
|
|
|
<input size="45" type="text" name="query" id="query" placeholder="Search" value="{{ query }}"/>
|
2021-01-22 05:08:04 +01:00
|
|
|
<button type="submit">Search</button>
|
|
|
|
</form>
|
|
|
|
<br>
|
|
|
|
<br>
|
2021-01-23 15:20:10 +01:00
|
|
|
|
|
|
|
{% if pages_total > 1 %}
|
|
|
|
{% if page > 1 %}
|
|
|
|
<a href="/search/{{ query }}/{{ page - 1 }}">Previous</a>
|
|
|
|
<b> | </b>
|
|
|
|
{% endif %}
|
|
|
|
Page {{ page }} of {{ pages_total }}
|
|
|
|
{% if page < pages_total %}
|
|
|
|
<b> | </b>
|
|
|
|
<a href="/search/{{ query }}/{{ page + 1}}">Next</a>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
|
2021-01-22 05:08:04 +01:00
|
|
|
{{ results.total }} Results
|
2021-07-18 00:10:24 +02:00
|
|
|
|
2021-07-18 00:52:53 +02:00
|
|
|
<hr>
|
2021-07-18 00:10:24 +02:00
|
|
|
<div id="wrap">
|
2021-01-22 05:08:04 +01:00
|
|
|
{% for result in results.data %}
|
2021-07-18 00:10:24 +02:00
|
|
|
<div class="result-wrapper">
|
2021-07-18 00:52:53 +02:00
|
|
|
<a href="/{{ result.channel.host }}/videos/watch/{{ result.uuid }}">
|
|
|
|
<img src="{{ result.thumbnailUrl }}" height="150">
|
|
|
|
</a>
|
|
|
|
|
2021-07-18 00:10:24 +02:00
|
|
|
<div class="result-info">
|
|
|
|
<a href="/{{ result.channel.host }}/videos/watch/{{ result.uuid }}">{{ result.name }}</a>
|
|
|
|
<br>
|
|
|
|
{% if result.views == 1%}
|
|
|
|
1 View
|
|
|
|
{% else %}
|
|
|
|
{{ result.views }} Views
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-01-22 05:08:04 +01:00
|
|
|
{% endfor %}
|
2021-07-18 00:10:24 +02:00
|
|
|
</div>
|
2021-07-18 00:52:53 +02:00
|
|
|
<hr>
|
2021-01-23 15:20:10 +01:00
|
|
|
|
|
|
|
{% if pages_total > 1 %}
|
|
|
|
{% if page > 1 %}
|
|
|
|
<a href="/search/{{ query }}/{{ page - 1 }}">Previous</a>
|
|
|
|
<b> | </b>
|
|
|
|
{% endif %}
|
|
|
|
Page {{ page }} of {{ pages_total }}
|
|
|
|
{% if page < pages_total %}
|
|
|
|
<b> | </b>
|
|
|
|
<a href="/search/{{ query }}/{{ page + 1}}">Next</a>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2021-07-18 00:52:53 +02:00
|
|
|
</center>
|
2021-01-22 05:08:04 +01:00
|
|
|
</body>
|
|
|
|
</html>
|