forked from timpritlove/podlove-templates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patharchive.twig
37 lines (36 loc) · 910 Bytes
/
archive.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
<table>
<thead>
<th width="15%">Datum</th>
<th width="70%">Titel & Themen</th>
<th width="15%">Dauer</th>
</thead>
<tbody>
{% for episode in podcast.episodes %}
<tr class="podcast_archive_element">
<td class="date">
<span class="release_date">
{{ episode.publicationDate.format('F Y') }}
<!-- https://secure.php.net/manual/en/function.date.php -->
</span>
</td>
<td class="title">
<a href="{{ episode.url }}">
<strong>{{ episode.title }}</strong><br>
</a>
{{ episode.subtitle }}
</td>
<td class="duration">
{% set duration = episode.duration %}
<strong>
{% if duration.hours > 0 %} {{ duration.hours }}h{% endif %} {{ duration.minutes|padLeft("0",2)}}min
</strong>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<style type="text/css">
.podcast_archive_element td {
vertical-align: middle;
}
</style>