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.

42 lines
1.5 KiB
HTML

{% import "macros.htm" as macros %}
<!DOCTYPE html>
<html>
{% set title = collection_list | length | string + " Collections known" %}
<head>
<meta charset="utf-8"/>
<title>{{ title }}</title>
{{ macros.shared_style() }}
</head>
<body>
{{ macros.body_header() }}
<h1>{{ title }}</h1>
<table class="collection_table_list">
<tr>
<th>Date</th>
<th>Thumbnail</th>
<th>Title</th>
<th>Tags</th>
</tr>
{% for collection in collection_list %}
<tr>
<td>
{% if collection.release_date %}
{{ collection.release_date.strftime("%d.%m.%Y") }}
{% else %}
unknown
{% endif %}
</td>
<td>
{% set e = (collection.next_episode or collection.first_episode).element %}
<img class="thumbnail_img" src="{{ e.info_link }}/thumbnail" alt="Thumbnail for {{ e.title }}" loading="lazy" />
</td>
<td><a href="{{ collection.info_link }}">{{ collection.title }}</a></td>
<td>
{{ collection.assigned_tags | map(attribute="title") | sort | join(" | ") }}
</td>
</tr>
{% endfor %}
</table>
</body>
</html>