diff options
author | Jordan <me@jordan.im> | 2020-04-05 20:20:41 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2020-04-05 20:20:41 -0700 |
commit | 2df5addacd82ac7463ff6d3ec6754b21dab71737 (patch) | |
tree | 0e6bdb96de5c78bb2e67fd5bad29190e436919b5 /templates | |
download | roka-2df5addacd82ac7463ff6d3ec6754b21dab71737.tar.gz roka-2df5addacd82ac7463ff6d3ec6754b21dab71737.zip |
initial commit
Diffstat (limited to 'templates')
-rw-r--r-- | templates/index.html | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..7bee424 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,45 @@ +<!DOCTYPE html> +<html> +<head> + <title>Audiobooks</title> + <meta charset="utf-8"> + <style> + table { + font-family: arila, sans-serif; + 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>Path</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'] }}</a></td> + <td>{{ v['path'] }}</td> + <td>{{ v['files']|length }}</td> + <td>{{ v['duration_str'] }}</td> + <td>{{ v['size_str'] }}</td> + </tr> + {% endfor %} + </table> +</body> +</html> |