[longplay] Add ability to undo finishes
Some checks failed
build / test (push) Has been cancelled

This commit is contained in:
2026-06-15 14:55:58 -04:00
parent 7d3f615ed7
commit c0be131e3d
6 changed files with 41 additions and 15 deletions

View File

@ -36,7 +36,6 @@
<p>{{scrobbles.count}} scrobbles</p>
<p><a href="{{object.resume_start_url}}">Resume reading</a></p>
<p><a class="btn btn-sm btn-warning" href="{{object.get_longplay_finish_url}}">Finish long play</a></p>
</div>
{% if charts %}
<div class="row">
@ -62,7 +61,7 @@
{% for scrobble in scrobbles.all|dictsortreversed:"timestamp" %}
<tr>
<td><a href="{{scrobble.get_absolute_url}}">{{scrobble.local_timestamp}}</a></td>
<td>{% if scrobble.long_play_complete == True %}Yes{% else %}No{% endif %}</td>
<td>{% if scrobble.long_play_complete == True %}Yes <small><a href="{% url 'scrobbles:longplay-finish' uuid=scrobble.uuid %}">(not complete?)</a></small>{% else %}<a href="{% url 'scrobbles:longplay-finish' uuid=scrobble.uuid %}">No</a>{% endif %}</td>
<td>{% if scrobble.in_progress %}Now reading{% else %}{{scrobble.session_pages_read}}{% 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>