SimpleerTube/templates/base.html

66 lines
1.9 KiB
HTML
Raw Normal View History

<!doctype html>
<html>
<head>
{% block head %}
<title>{% block full_title %}{% block title %}{% endblock %} - SimpleerTube{% endblock %}</title>
{% endblock %}
</head>
<body>
<form action="/{{ domain }}/search" method="POST">
2021-01-21 11:14:20 +01:00
<label for="query"><b>{{ instance_name }}</b></label>
<input type="text" name="query" id="query" placeholder="Search" value="{{ search_term }}"/>
<button type="submit">Search</button>
</form>
<br>
2021-01-22 04:17:02 +01:00
<a href="/{{ domain }}/videos/local">Local</a>
<b> | </b>
<a href="/{{ domain }}/videos/trending">Trending</a>
<b> | </b>
<a href="/{{ domain }}/videos/most-liked">Most Liked</a>
<b> | </b>
<a href="/{{ domain }}/videos/recently-added">Recently Added</a>
<br>
2021-01-23 15:20:10 +01:00
<br>
{% block head_content %}{% endblock %}
{% if pagination_url %}
{% if pages_total > 1 %}
{% if page > 1 %}
<a href="{{ pagination_url }}{{ page - 1 }}">Previous</a>
<b> | </b>
{% endif %}
Page {{ page }} of {{ pages_total }}
{% if page < pages_total %}
<b> | </b>
<a href="{{ pagination_url }}{{ page + 1}}">Next</a>
{% endif %}
{% endif %}
{% endif %}
2021-01-22 04:17:02 +01:00
<br>
{% block content %}{% endblock %}
2021-01-23 15:20:10 +01:00
{% if pagination_url %}
{% if pages_total > 1 %}
{% if page > 1 %}
<a href="{{ pagination_url }}{{ page - 1 }}">Previous</a>
<b> | </b>
{% endif %}
Page {{ page }} of {{ pages_total }}
{% if page < pages_total %}
<b> | </b>
<a href="{{ pagination_url }}{{ page + 1}}">Next</a>
{% endif %}
{% endif %}
{% endif %}
2021-01-20 17:10:23 +01:00
<footer>
<a href="https://codeberg.org/simple-web/peertube/src/commit/{{ commit }}">Commit: {{ commit }}</a>
2021-01-20 17:10:23 +01:00
</footer>
</body>
</html>