mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-24 16:21:53 +00:00
nicer display
This commit is contained in:
parent
ceb20f8565
commit
5b23b2df8a
@ -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:
|
||||
|
@ -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>
|
||||
</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
|
||||
|
Loading…
Reference in New Issue
Block a user