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:
parent
70c629f455
commit
55bbccb4ca
@ -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}" '
|
||||
|
@ -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,
|
||||
},
|
||||
)
|
||||
|
||||
|
@ -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> {% endif %}
|
||||
Full logbook for this year: <a href="/years/{{year}}/logbook.html"><em>Logbook {{year}}</em></a>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user