aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
authorJordan <me@jordan.im>2021-06-09 22:51:23 -0700
committerGitHub <noreply@github.com>2021-06-09 22:51:23 -0700
commit4cd0884b307e28bd9f2e531c41fb7b41600b02a4 (patch)
tree6dbc8d1aed8fb78c0237c2df229f2533fb92c8d9 /templates/index.html
parent1035ea7c0f97d68c35a2621da410b600bc464fbe (diff)
parent3cc49916660f71e0498fa8c9e2c13df1fe138a56 (diff)
downloadroka-4cd0884b307e28bd9f2e531c41fb7b41600b02a4.tar.gz
roka-4cd0884b307e28bd9f2e531c41fb7b41600b02a4.zip
Merge pull request #2 from dgarrett/show-author-optional-filename
Include Author on index page, and make file path optional
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html
index c05ff8e..a31b763 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -28,7 +28,10 @@
<table>
<tr>
<th>Title</th>
+ <th>Author</th>
+ {% if show_path %}
<th>Path</th>
+ {% endif %}
<th>Tracks</th>
<th>Duration</th>
<th>Size</th>
@@ -36,7 +39,10 @@
{% 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>