blob: a31b763ffabd52144e6cd1a57c8fe41bdf4e0fab (
plain)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
|
<!DOCTYPE html>
<html>
<head>
<title>Audiobooks</title>
<meta charset="utf-8">
<style>
body {
font-family: Consolas, monospace;
}
table {
border-collapse: collapse; width: 100%;
width: 100%;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
</style>
</head>
<body>
<h2>Audiobooks</h2>
<table>
<tr>
<th>Title</th>
<th>Author</th>
{% if show_path %}
<th>Path</th>
{% endif %}
<th>Tracks</th>
<th>Duration</th>
<th>Size</th>
</tr>
{% for b, v in books.items() %}
<tr>
<td><a href="?a={{ b }}">{{ v['title']|escape }}</a></td>
<td>{{ v['author'] }}</td>
{% if show_path %}
<td>{{ v['path']|escape }}</td>
{% endif %}
<td>{{ v['files']|length }}</td>
<td>{{ v['duration_str'] }}</td>
<td>{{ v['size_str'] }}</td>
</tr>
{% endfor %}
</table>
</body>
</html>
|