aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
blob: ebd8bfa4fe77f3b311029b17e002df714f2f09dd (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
<!DOCTYPE html>
<html>
<head>
    <title>Audiobooks</title>
    <meta charset="utf-8">
    <link href="static/bootstrap.min.css" rel="stylesheet">
</head>
<body>
    <div class="container container-fluid">
    <h2>Audiobooks</h2>
    <table class="table table-condensed table-bordered table-striped">
        <tr>
            <th>Title</th>
            <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['files']|length }}</td>
            <td>{{ v['duration_str'] }}</td>
            <td>{{ v['size_str'] }}</td>
        </tr>
        {% endfor %}
    </table>
    </div>
</body>
</html>