summaryrefslogtreecommitdiffstats
path: root/core/views/other.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2024-07-18 10:12:30 +0200
committerPhilip Sargent <philip.sargent@gmail.com>2024-07-18 10:12:30 +0200
commit3ba1454f15a84c75b89c509f5f188b8970ce436d (patch)
treec31e0a6615a8db19963fdba957c07fd348faf66a /core/views/other.py
parent12fa55f53706135554c8fa7e8d2b2b64aa34b6cb (diff)
downloadtroggle-3ba1454f15a84c75b89c509f5f188b8970ce436d.tar.gz
troggle-3ba1454f15a84c75b89c509f5f188b8970ce436d.tar.bz2
troggle-3ba1454f15a84c75b89c509f5f188b8970ce436d.zip
add link to logbook delete in control panel
Diffstat (limited to 'core/views/other.py')
-rw-r--r--core/views/other.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/core/views/other.py b/core/views/other.py
index 200b57b..ed03516 100644
--- a/core/views/other.py
+++ b/core/views/other.py
@@ -20,7 +20,7 @@ from troggle.parsers.imports import (
import_survex,
import_surveyscans,
)
-
+from troggle.core.utils import current_expo
from .auth import login_required_if_public
"""Utility functions and code to serve the control panel and individual user's
@@ -149,7 +149,8 @@ def controlpanel(request):
return render(
request,
"controlPanel.html",
- {"error": 'You are logged in, but not logged in as "expoadmin". \nLogout and login again to contnue.'},
+ {"error": 'You are logged in, but not logged in as "expoadmin". \nLogout and login again to contnue.', "year": current_expo()}
+
)
else:
if request.method == "POST":
@@ -158,13 +159,13 @@ def controlpanel(request):
return render(
request,
"controlPanel.html",
- {"expeditions": Expedition.objects.all(), "jobs_completed": jobs_completed},
+ {"expeditions": Expedition.objects.all(), "jobs_completed": jobs_completed, "year": current_expo()},
)
else:
return render(
request,
"controlPanel.html",
- {"expeditions": Expedition.objects.all(), "jobs_completed": jobs_completed},
+ {"expeditions": Expedition.objects.all(), "jobs_completed": jobs_completed, "year": current_expo()},
)