2021-01-22 05:08:04 +01:00
|
|
|
<!doctype html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>SimpleerTube - Search</title>
|
2021-03-24 18:52:46 +01:00
|
|
|
<link rel="stylesheet" href="/static/style.css">
|
2021-07-29 17:06:28 +02:00
|
|
|
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="SimpleerTube"/>
|
2021-03-24 18:52:46 +01:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
2021-01-22 05:08:04 +01:00
|
|
|
</head>
|
|
|
|
<body>
|
2021-03-24 18:56:02 +01:00
|
|
|
<center>
|
|
|
|
<h2>SimpleerTube</h2>
|
2021-03-24 19:10:04 +01:00
|
|
|
<h5>A simple frontend for PeerTube</h5>
|
2021-03-24 18:56:02 +01:00
|
|
|
|
|
|
|
<form action="/search" method="POST">
|
2021-07-18 01:12:12 +02:00
|
|
|
<input size="45" style="max-width: 100%" type="text" name="query" id="query" placeholder="SepiaSearch"/>
|
2021-03-24 18:56:02 +01:00
|
|
|
<button type="submit">Search</button>
|
2021-07-29 17:06:28 +02:00
|
|
|
</form>{% if videos|length > 0 %}
|
|
|
|
<hr>
|
|
|
|
<h2>{{ videos|length }} latest videos from local subscriptions</h2>
|
2021-07-29 18:49:17 +02:00
|
|
|
<p>{% for sub in subscriptions %}{% if not loop.first %}, {% endif %}<a href="/{{ sub.host }}{% if sub.ownerAccount %}/video-channels{% else %}/accounts{% endif %}/{{ sub.name }}">{{ sub.displayName }} (@{{ sub.name }}@{{ sub.host }})</a>{% endfor %}</p>
|
2021-07-29 17:06:28 +02:00
|
|
|
<hr>
|
|
|
|
<div id="wrap">
|
|
|
|
{% for vid in videos %}
|
|
|
|
<div class="result-wrapper">
|
|
|
|
<a href="/{{ vid.account.host }}/videos/watch/{{ vid.uuid }}">
|
|
|
|
<img src="https://{{ vid.account.host }}{{ vid.thumbnailPath }}" height="150"/>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<div class="result-info">
|
|
|
|
<a href="/{{ vid.account.host }}/videos/watch/{{ vid.uuid }}">{{ vid.name }}</a>
|
|
|
|
<br>
|
|
|
|
{{ vid.views }} Views
|
|
|
|
<br>
|
|
|
|
<a href="/{{ vid.account.host }}/video-channels/{{ vid.channel.name }}@{{ vid.channel.host }}">
|
|
|
|
<b>{{ vid.channel.displayName }}</b>
|
|
|
|
</a>
|
|
|
|
<br>
|
|
|
|
<a href="/{{ vid.account.host }}/accounts/{{ vid.account.name }}@{{ vid.account.host }}">
|
|
|
|
{{ vid.account.name }}@{{ vid.account.host }}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>{% endif %}
|
2021-03-24 18:56:02 +01:00
|
|
|
</center>
|
2021-01-22 05:08:04 +01:00
|
|
|
</body>
|
|
|
|
</html>
|