mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-28 10:02:10 +00:00
fix year menu, fix name display, fix no of entries
This commit is contained in:
parent
245486666c
commit
9166b6ed74
@ -313,6 +313,7 @@ def logbookentry(request, date, slug):
|
||||
# start = time.time()
|
||||
trips = LogbookEntry.objects.filter(date=date) # all the trips not just this one
|
||||
this_logbookentry = trips.filter(date=date, slug=slug)
|
||||
year = slug[:4]
|
||||
|
||||
if this_logbookentry:
|
||||
if len(this_logbookentry) > 1:
|
||||
@ -329,7 +330,8 @@ def logbookentry(request, date, slug):
|
||||
return render(
|
||||
request,
|
||||
"logbookentry.html",
|
||||
{"logbookentry": this_logbookentry,"trips": trips, "svxothers": svxothers, "wallets": wallets},
|
||||
{"logbookentry": this_logbookentry,"trips": trips,
|
||||
"svxothers": svxothers, "wallets": wallets, "year": year},
|
||||
)
|
||||
else:
|
||||
msg = f' Logbook entry slug:"{slug}" not found in database on date:"{date}" '
|
||||
|
@ -60,7 +60,7 @@ LOGBOOKS_DIR = "years" # subfolder of settings.EXPOWEB
|
||||
|
||||
ENTRIES = {
|
||||
"2024": 41,
|
||||
"2023": 91,
|
||||
"2023": 112,
|
||||
"2022": 94,
|
||||
"2019": 55,
|
||||
"2018": 95,
|
||||
|
@ -43,7 +43,7 @@ th, td {
|
||||
{% else %}
|
||||
<td>
|
||||
{% endif %}
|
||||
<a href="{{ personlogentry.personexpedition.get_absolute_url }}">{{personlogentry.nickname_used}} ({{personlogentry.personexpedition.person}})</a>
|
||||
<a href="{{ personlogentry.personexpedition.get_absolute_url }}" title="{{personlogentry.personexpedition.person}}">{{personlogentry.nickname_used}} </a>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
|
Loading…
Reference in New Issue
Block a user