diff --git a/core/views/logbooks.py b/core/views/logbooks.py index cd39ab6..d9ae442 100644 --- a/core/views/logbooks.py +++ b/core/views/logbooks.py @@ -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}" ' diff --git a/core/views/uploads.py b/core/views/uploads.py index 5c035d8..fb62dd3 100644 --- a/core/views/uploads.py +++ b/core/views/uploads.py @@ -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, }, ) diff --git a/templates/logbookform.html b/templates/logbookform.html index 1f7602b..2588b09 100644 --- a/templates/logbookform.html +++ b/templates/logbookform.html @@ -88,7 +88,9 @@


- Full logbook for this year: Logbook {{year}} + {% if date %}

Link to this entry   {% endif %} + Full logbook for this year: Logbook {{year}} +