[books] Add utility urls to model and scrobbles

This commit is contained in:
2025-10-22 14:18:01 -04:00
parent 8faf0296a6
commit 050add8543
9 changed files with 161 additions and 23 deletions

View File

@ -26,11 +26,19 @@
</div>
</div>
<div class="row">
<p><a href="{{s.logdata.restart_url}}">Read again</a></p>
{% if object.readcomics_url %}
<p><a href="{{object.readcomics_url}}">Read next issue</a></p>
{% endif %}
{% if object.next_readcomics_url %}
<p><a href="{{object.next_readcomics_url}}">Read next issue</a></p>
{% endif %}
<p>{{scrobbles.count}} scrobbles</p>
{% for s in scrobbles %}
{% if forloop.first %}
<p><a href="{{s.logdata.restart_url}}">Re-read</a></p>
<p><a href="{{s.logdata.resume_url}}">Resume</a></p>
<p><a href="{{s.logdata.resume_url}}">Resume reading</a></p>
{% endif %}
{% endfor %}
</div>