-
Notifications
You must be signed in to change notification settings - Fork 9
/
latest-episodes.twig
41 lines (34 loc) · 1.4 KB
/
latest-episodes.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{% set list = network.lists({id: option.list }) %}
{% set icon_size = 64 %}
<table>
<thead>
<th style="width: {{ icon_size + 10 }}px"></th>
<th style="width: {{ icon_size + 10 }}px"></th>
<th>Titel</th>
<th>Dauer</th>
</thead>
<tbody>
{% for episode in list.episodes({limit: option.limit}) %}
{% set podcast = episode.podcast %}
<tr class="podcast_archive_element">
<td class="thumbnail">
{% if episode.image %}
<a href="{{ episode.url }}">
{{ episode.image.html({retina: true, width: icon_size, title: episode.title.blog }) }}
</a>
{% endif %}
</td>
<td class="thumbnail">
<a href="{{ podcast.landingPageUrl }}">
{{ podcast.image.html({retina: true, width: icon_size, title: podcast.title }) }}
</a>
</td>
<td class="title" style="vertical-align:top">
<a href="{{ episode.url }}"><strong>{{ episode.title.blog }}</strong></a><br/>
<strong>{{ podcast.title }}</strong><br/>{{ episode.publicationDate }}<br/>
</td>
<td class="duration" style="vertical-align:top">{{ episode.duration }}</td>
</tr>
{% endfor %}
</tbody>
</table>