Clean up location templates

This commit is contained in:
2023-11-25 15:56:05 +01:00
parent 9ba9319885
commit abd07f3113
2 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{% extends "base_list.html" %}
{% load mathfilters %}
{% load static %}
{% load naturalduration %}
{% load humanize %}
{% block title %}{{object.title}}{% endblock %}
@ -62,7 +62,7 @@
<tbody>
{% for scrobble in object.scrobble_set.all|dictsortreversed:"timestamp" %}
<tr>
<td>{{scrobble.timestamp}}</td>
<td>{{scrobble.timestamp|naturaltime}}</td>
</tr>
{% endfor %}
</tbody>

View File

@ -62,6 +62,7 @@
<thead>
<tr>
<th scope="col">Scrobbles</th>
<th scope="col">Title</th>
<th scope="col">Point</th>
</tr>
</thead>
@ -69,6 +70,7 @@
{% for location in object_list %}
<tr>
<td>{{location.scrobble_set.count}}</td>
<td>{{location.title}}</td>
<td><a href="{{location.get_absolute_url}}">{{location.lat}}x{{location.lon}}</a></td>
</tr>
{% endfor %}