Update long play templates, remove chart

This commit is contained in:
2023-03-08 12:45:30 -05:00
parent 960fe3e8d1
commit b307054453
7 changed files with 44 additions and 27 deletions

View File

@ -27,7 +27,13 @@
</div>
<div class="row">
<p>{{object.scrobble_set.count}} scrobbles</p>
<p><a href="">Start playing</a></p>
<p>
{% if object.scrobble_set.last.long_play_complete == True %}
<a href="">Read again</a>
{% else %}
<a href="">Resume reading</a>
{% endif %}
</p>
</div>
<div class="row">
<div class="col-md">
@ -37,6 +43,7 @@
<thead>
<tr>
<th scope="col">Date</th>
<th scope="col">Completed</th>
<th scope="col">Duration</th>
<th scope="col">Authors</th>
</tr>
@ -45,6 +52,7 @@
{% for scrobble in object.scrobble_set.all|dictsortreversed:"timestamp" %}
<tr>
<td>{{scrobble.timestamp}}</td>
<td>{% if scrobble.long_play_complete == True %}Yes{% endif %}</td>
<td>{% if scrobble.in_progress %}Now playing{% else %}{{scrobble.long_play_session_seconds|natural_duration}}{% endif %}</td>
<td>{% for author in scrobble.book.authors.all %}<a href="{{author.get_absolute_url}}">{{author}}</a>{% if not forloop.last %}, {% endif %}{% endfor %}</td>
</tr>