home · contact · privacy
Add previously forgotten template. master
authorChristian Heller <c.heller@plomlompom.de>
Tue, 12 Nov 2024 16:33:23 +0000 (17:33 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 12 Nov 2024 16:33:23 +0000 (17:33 +0100)
templates/video_about.tmpl [new file with mode: 0644]

diff --git a/templates/video_about.tmpl b/templates/video_about.tmpl
new file mode 100644 (file)
index 0000000..290e76d
--- /dev/null
@@ -0,0 +1,31 @@
+<html>
+<meta charset="UTF-8">
+<body>
+<p><a href="/playlist">playlist</a> · <a href="/videos">videos</a> · <a href="/queries">queries</a></p>
+<table>
+<tr><th>title:</th><td>{{video_data.title}}</td></tr>
+<tr><th>thumbnail:</th><td><img src="/thumbnails/{{video_id}}.jpg" /></td></tr>
+<tr><th>description:</th><td>{{video_data.description}}</td></tr>
+<tr><th>duration:</th><td>{{video_data.duration}}</td></tr>
+<tr><th>definition:</th><td>{{video_data.definition}}</td></tr>
+<tr><th>YouTube ID:</th><td>{{video_id}}</td></tr>
+<tr>
+<th>actions:</th>
+<td>
+<ul>
+<li><a href="{{youtube_prefix}}{{video_id}}">watch on YouTube</a>
+<li><a href="/dl/{video_id}">{% if video_data.available %}watch locally{% else %}download{% endif %}</a>
+</td>
+</tr>
+<tr>
+<th>linked queries:</th>
+<td>
+<ul>
+{% for query in queries %}<li><a href="/query/{{query.0}}">{{query.1}}</a>{% endfor %}
+</ul>
+</td>
+</tr>
+</table>
+</body>
+</html>
+