2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-22 07:11: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( return render(
request, request,
"logbookentry.html", "logbookentry.html",
{"logbookentry": this_logbookentry, "trips": trips, "svxothers": svxothers, "wallets": wallets}, {"logbookentry": this_logbookentry,"trips": trips, "svxothers": svxothers, "wallets": wallets},
) )
else: else:
msg = f' Logbook entry slug:"{slug}" not found in database on date:"{date}" ' 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, "tu": tu,
"entry": entry, "entry": entry,
"output": output, "output": output,
"slug": slug,
}, },
) )
# GET here # GET here
@ -398,6 +399,7 @@ def logbookedit(request, year=None, slug=None):
"tu": tu, "tu": tu,
"entry": text, "entry": text,
"textrows": rows, "textrows": rows,
"slug": slug,
}, },
) )

View File

@ -88,7 +88,9 @@
</form> </form>
<br /><br /><br /> <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> </div>