mirror of
https://codeberg.org/SimpleWeb/SimpleerTube.git
synced 2024-11-15 05:33:17 +00:00
64 lines
2 KiB
HTML
64 lines
2 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>SimpleerTube - Search Results</title>
|
|
<link rel="stylesheet" href="/static/style.css">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
</head>
|
|
<body>
|
|
<h2>SimpleerTube</h2>
|
|
<form action="/search" method="POST">
|
|
<input size="45" type="text" name="query" id="query" placeholder="Search" value="{{ query }}"/>
|
|
<button type="submit">Search</button>
|
|
</form>
|
|
<br>
|
|
<br>
|
|
|
|
{% 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>
|
|
|
|
{{ results.total }} Results
|
|
|
|
<div id="wrap">
|
|
{% for result in results.data %}
|
|
<div class="result-wrapper">
|
|
<img src="{{ result.thumbnailUrl }}" height="150">
|
|
<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>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
{% 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 %}
|
|
</body>
|
|
</html>
|