From 5b23b2df8adab5778b9aa1b4ce56380d9cfe43de Mon Sep 17 00:00:00 2001
From: Philip Sargent
Date: Tue, 16 Jul 2024 17:30:04 +0200
Subject: [PATCH] nicer display
---
core/views/logbooks.py | 8 ++++----
templates/logreport.html | 5 +++--
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/core/views/logbooks.py b/core/views/logbooks.py
index 8f7d002..1bcf54d 100644
--- a/core/views/logbooks.py
+++ b/core/views/logbooks.py
@@ -226,7 +226,7 @@ def logreport(request, year=1999):
PersonLogEntry.objects.filter(personexpedition__expedition=expo)
"""
- print(f"logreport(): begun")
+ # print(f"logreport(): begun")
expeditions = Expedition.objects.all() # top menu only, evaluated only when template renders
dates = None
@@ -257,7 +257,7 @@ def logreport(request, year=1999):
entry.who.append(p)
- print(f"logreport(): trying..")
+ # print(f"logreport(): trying..")
context = {
"year": year,
"expedition": expo,
@@ -265,8 +265,8 @@ def logreport(request, year=1999):
"settings": settings,
"dateditems": dateditems,
"dates": dates,
- }
- print(f"logreport(): rendering..")
+ }
+ # print(f"logreport(): rendering..")
return render(request, "logreport.html", context)
except Exception as e:
diff --git a/templates/logreport.html b/templates/logreport.html
index a131146..b76b979 100644
--- a/templates/logreport.html
+++ b/templates/logreport.html
@@ -18,6 +18,7 @@
{% endfor %}
+(Hover mouse over the date to see the slug for the entry.)
Date | Logged trips and diary entries | Cave | Text.. | Words | Author | Who else |
@@ -25,7 +26,7 @@
{% for date in dates %}
{% for entry in date.list %}
- {{date.grouper|date:"D d M Y"}} |
+ {{date.grouper|date:"D d M Y"}} |
{{entry.title|truncatechars:30|safe|striptags}}
|
@@ -58,7 +59,7 @@
{% endfor %}
-See also the
+
See also: