From abd07f3113e3d7f8a80eafeb34655297d7e592b4 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Sat, 25 Nov 2023 15:56:05 +0100 Subject: [PATCH] Clean up location templates --- vrobbler/templates/locations/geolocation_detail.html | 4 ++-- vrobbler/templates/locations/geolocation_list.html | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/vrobbler/templates/locations/geolocation_detail.html b/vrobbler/templates/locations/geolocation_detail.html index 5e3fd65..138d9a4 100644 --- a/vrobbler/templates/locations/geolocation_detail.html +++ b/vrobbler/templates/locations/geolocation_detail.html @@ -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 @@ {% for scrobble in object.scrobble_set.all|dictsortreversed:"timestamp" %} - {{scrobble.timestamp}} + {{scrobble.timestamp|naturaltime}} {% endfor %} diff --git a/vrobbler/templates/locations/geolocation_list.html b/vrobbler/templates/locations/geolocation_list.html index 72143e5..5071290 100644 --- a/vrobbler/templates/locations/geolocation_list.html +++ b/vrobbler/templates/locations/geolocation_list.html @@ -62,6 +62,7 @@ Scrobbles + Title Point @@ -69,6 +70,7 @@ {% for location in object_list %} {{location.scrobble_set.count}} + {{location.title}} {{location.lat}}x{{location.lon}} {% endfor %}