2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-21 23:01:52 +00:00

add link to exact logbookentry page

This commit is contained in:
Philip Sargent 2023-11-04 10:40:46 +02:00
parent 70c629f455
commit 55bbccb4ca
3 changed files with 6 additions and 2 deletions

View File

@ -229,7 +229,7 @@ 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},
)
else:
msg = f' Logbook entry slug:"{slug}" not found in database on date:"{date}" '

View File

@ -345,6 +345,7 @@ def logbookedit(request, year=None, slug=None):
"tu": tu,
"entry": entry,
"output": output,
"slug": slug,
},
)
# GET here
@ -398,6 +399,7 @@ def logbookedit(request, year=None, slug=None):
"tu": tu,
"entry": text,
"textrows": rows,
"slug": slug,
},
)

View File

@ -88,7 +88,9 @@
</form>
<br /><br /><br />
Full logbook for this year: <a href="/years/{{year}}/logbook.html"><em>Logbook {{year}}</em></a>
{% if date %}<p>Link to <em><a href="/logbookentry/{{date}}/{{slug}}#">this entry</a></em> &nbsp;&nbsp;{% endif %}
Full logbook for this year: <a href="/years/{{year}}/logbook.html"><em>Logbook {{year}}</em></a>
</div>