Clean up location detail

This commit is contained in:
2023-11-24 01:35:32 +01:00
parent 85a91b340a
commit ca3e495467

View File

@ -39,7 +39,6 @@
<p style="float:left; width:402px; padding:0; border: 1px solid #ccc">
</p>
<div style="float:left; width:600px; margin-left:10px; ">
{{object.lat}}
{% if object.summary %}
<p>{{object.summary|safe|linebreaks|truncatewords:160}}</p>
<hr />
@ -58,18 +57,12 @@
<thead>
<tr>
<th scope="col">Date</th>
<th scope="col">Completed</th>
<th scope="col">Pages read</th>
<th scope="col">Authors</th>
</tr>
</thead>
<tbody>
{% 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 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>
{% endfor %}
</tbody>