Show thumbnail of next or first episode in collection list

master
Felix Stupp 2 years ago
parent 5beb0a8bdf
commit d9a95dae1a
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -10,7 +10,7 @@
<body>
{{ macros.body_header() }}
<h1>{{ title }}</h1>
<table>
<table class="collection_table_list">
<tr>
<th>Date</th>
<th>Count</th>
@ -18,6 +18,7 @@
<th>Ignored</th>
<th>To Watch</th>
<th>Id</th>
<th>Thumbnail</th>
<th>Title</th>
<th>Tags</th>
</tr>
@ -38,6 +39,10 @@
<td>
{{ collection.id }}
</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(" | ") }}

@ -86,6 +86,10 @@
font-size: 1.2rem;
}
/* Collection Table Listing */
.collection_table_list .thumbnail_img {
max-width: 140px;
}
/* media element */
.element_view {
display: flex;

Loading…
Cancel
Save