[templates] Cleaning up how notes are displayed
All checks were successful
build & deploy / test (push) Successful in 1m43s
build & deploy / deploy (push) Successful in 22s

This commit is contained in:
2026-03-24 16:07:17 -04:00
parent a79cc4c217
commit 5b3e91fdc1
7 changed files with 40 additions and 10 deletions

View File

@ -11,6 +11,7 @@
<div class="row">
<h1>{{ object.media_obj }} - {{object.media_type}}</h1>
<h2 class="text-muted">{{ object.local_timestamp }}</h2>
{% with notes_html=object.logdata.notes_as_html %}
{% if notes_html %}
@ -27,8 +28,10 @@
<p>Rate: {{object.logdata.avg_seconds_per_page}}s per page</p>
{% endif %}
<details class="mb-3">
<summary>Edit Log</summary>
<button class="btn btn-secondary mb-3" type="button" data-bs-toggle="collapse" data-bs-target="#editLogForm">
Edit Log
</button>
<div class="collapse mb-3" id="editLogForm">
<form method="post" class="needs-validation mt-3" novalidate>
{% csrf_token %}
{% for field in log_form %}
@ -46,7 +49,7 @@
<button type="submit" class="btn btn-primary">Save</button>
</form>
</details>
</div>
<h2 class="mt-4">Other Scrobbles of This Media</h2>
{% if related_scrobbles %}