summaryrefslogtreecommitdiffstats
path: root/core/views/expo.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2025-01-28 15:38:37 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2025-01-28 15:38:37 +0000
commit11cf61b0a340ff102e843655a7c408f0a4e3c16f (patch)
treec01f532abd7065d43678999e63f0f836e51efee1 /core/views/expo.py
parentbac65b58972ea6143d6e6a53e4d12543c8dd1c84 (diff)
downloadtroggle-11cf61b0a340ff102e843655a7c408f0a4e3c16f.tar.gz
troggle-11cf61b0a340ff102e843655a7c408f0a4e3c16f.tar.bz2
troggle-11cf61b0a340ff102e843655a7c408f0a4e3c16f.zip
Put troggle reports menu on troggle handbook pages
Diffstat (limited to 'core/views/expo.py')
-rw-r--r--core/views/expo.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/views/expo.py b/core/views/expo.py
index 821decc..9089481 100644
--- a/core/views/expo.py
+++ b/core/views/expo.py
@@ -228,7 +228,7 @@ def expowebpage(request, expowebpath, path):
else:
editable = os.access(expowebpath / path, os.W_OK) # are file permissions writeable?
# print(f"EDITABLE ? {editable}\n{head}")
- has_menu = False
+ has_menu = False # this is the old-style AERW-era hand-coded menu on each individual page
menumatch = re.match(r'(.*)<ul id="links">', body, re.DOTALL + re.IGNORECASE)
if menumatch:
has_menu = False
@@ -248,8 +248,8 @@ def expowebpage(request, expowebpath, path):
else:
year = None
- # Determine if this page is part of the handbook
- handbook = path.startswith("handbook")
+ # Determine if this page is part of the troggle handbook
+ troggle = path.startswith("handbook/troggle")
return render(
request,
@@ -262,8 +262,8 @@ def expowebpage(request, expowebpath, path):
"homepage": (path == "index.htm"),
"has_menu": has_menu,
"year": year,
- "handbook": handbook,
"parent_caves": parent_caves,
+ "troggle": troggle,
},
)