From: Christian Heller <c.heller@plomlompom.de> Date: Tue, 12 Nov 2024 16:33:23 +0000 (+0100) Subject: Add previously forgotten template. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%22https:/validator.w3.org/processes?a=commitdiff_plain;h=e028496310260c9b31cbf9047c33488d303de875;p=ytplom Add previously forgotten template. --- diff --git a/templates/video_about.tmpl b/templates/video_about.tmpl new file mode 100644 index 0000000..290e76d --- /dev/null +++ b/templates/video_about.tmpl @@ -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> +