You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
2.1 KiB
HTML

<!DOCTYPE html>
<html>
{% set title = media_list | length | string + " Videos known" %}
<head>
<meta charset="utf-8"/>
<title>{{ title }}</title>
<style>
table tr th, table tr td {
margin: 0;
padding: .2em;
border: solid black 1px;
}
a:link { text-decoration: none; }
a:visited { text-decoration: none; }
a:hover { text-decoration: none; }
a:active { text-decoration: none; }
.button {
padding: .1rem .2rem;
margin: 0 .1rem;
background-color: lightcoral;
border-radius: .3rem;
}
</style>
</head>
<body>
<h1>{{ title }}</h1>
<ul>
<li>
Full length:
{{ media_list | map(attribute='length') | sum }}
seconds
</li>
</ul>
<table>
<tr>
<th>Title</th>
<th>Date</th>
<th>Progress</th>
<th>Length</th>
<th>Consider</th>
<th>Actions</th>
</tr>
{% for media in media_list %}
<tr>
<td><a href="{{ media.info_link }}">{{ media.title }}</a></td>
<td>{{ media.release_date.strftime("%d.%m.%Y") }}</td>
<td>
{% if media.watched %}
completed
{% elif media.progress <= 0 %}
not started
{% else %}
{{ media.progress }}&nbsp;s
{% endif %}
</td>
<td>{{ media.length }}&nbsp;s</td>
<td>{{ media.can_considered | tenary("Yes", "no") }}</td>
<td>
{{ media.uri | as_play_link }}
</td>
</tr>
{% endfor %}
</table>
</body>
</html>