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