1
0
mirror of https://git.sr.ht/~metalune/simpleweb_peertube synced 2024-12-23 04:48:36 +01:00
SimpleerTube_peertube_minim.../templates/simpleer_search_results.html

67 lines
2.0 KiB
HTML
Raw Normal View History

2021-01-22 05:08:04 +01:00
<!doctype html>
<html>
<head>
<title>SimpleerTube - Search Results</title>
</head>
<body>
<form action="/search" method="POST">
<label for="query"><b>SimpleerTube</b></label>
2021-01-23 15:20:10 +01:00
<input 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
<table>
{% for result in results.data %}
<tr>
<td>
<img src="{{ result.thumbnailUrl }}" height="150"/>
</td>
<td>
<a href="/{{ result.channel.host }}/videos/watch/{{ result.uuid }}">
{{ result.name }}
</a>
<br>
{{ result.views }} Views
<br>
</td>
</tr>
{% endfor %}
</table>
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-01-22 05:08:04 +01:00
<footer>
<a href="https://codeberg.org/simple-web/peertube/src/commit/{{ commit }}">Commit: {{ commit }}</a>
</footer>
</body>
</html>