summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2024-07-16 17:30:04 +0200
committerPhilip Sargent <philip.sargent@gmail.com>2024-07-16 17:30:04 +0200
commit5b23b2df8adab5778b9aa1b4ce56380d9cfe43de (patch)
treefe419303ced33cdfee1ee89bcf49c02e1e6ab245
parentceb20f85652d3c3056fd15f6e939297cbb213c2e (diff)
downloadtroggle-5b23b2df8adab5778b9aa1b4ce56380d9cfe43de.tar.gz
troggle-5b23b2df8adab5778b9aa1b4ce56380d9cfe43de.tar.bz2
troggle-5b23b2df8adab5778b9aa1b4ce56380d9cfe43de.zip
nicer display
-rw-r--r--core/views/logbooks.py8
-rw-r--r--templates/logreport.html5
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 %}
</p>
+<p>(Hover mouse over the date to see the slug for the entry.)
<table class="expeditionlogbooks">
<tr><th>Date</th><th>Logged trips and diary entries</th><th>Cave</th><th>Text..</th><th>Words</th><th>Author</th><th>Who else</th></tr>
@@ -25,7 +26,7 @@
{% for date in dates %}
{% for entry in date.list %}
<tr>
- <td>{{date.grouper|date:"D d M Y"}}</td>
+ <td title="{{entry.slug}}">{{date.grouper|date:"D d M Y"}}</td>
<td>
<a href="{{ entry.get_absolute_url }}">{{entry.title|truncatechars:30|safe|striptags}}</a>&nbsp;
</td>
@@ -58,7 +59,7 @@
{% endfor %}
</table>
-<p>See also the
+<p>See also:
<ul>
<li> <a href="/expedition/{{expedition.year}}">full calendar page</a> for this Expo (slow page)
<li> <a href="/years/{{expedition.year}}/">documentation index</a> for this Expo