summaryrefslogtreecommitdiffstats
path: root/core/views/expo.py
diff options
context:
space:
mode:
authorMartin Green <martin.speleo@gmail.com>2022-06-24 15:48:35 +0100
committerMartin Green <martin.speleo@gmail.com>2022-06-24 15:48:35 +0100
commitceb6d2fef174eac9341fd68b89c8fb8bbfaa4ff1 (patch)
tree155470a5ff5b1fdcdbb1c5ee7ca47f1459746e82 /core/views/expo.py
parentb38412b145fac56f8b3e7ebdd6d213f6bcaeb936 (diff)
downloadtroggle-ceb6d2fef174eac9341fd68b89c8fb8bbfaa4ff1.tar.gz
troggle-ceb6d2fef174eac9341fd68b89c8fb8bbfaa4ff1.tar.bz2
troggle-ceb6d2fef174eac9341fd68b89c8fb8bbfaa4ff1.zip
Added a sub menu when in the handbook directory. Imcreased width of edit preview
Diffstat (limited to 'core/views/expo.py')
-rw-r--r--core/views/expo.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/views/expo.py b/core/views/expo.py
index 65b6812..330733e 100644
--- a/core/views/expo.py
+++ b/core/views/expo.py
@@ -174,8 +174,10 @@ def expowebpage(request, expowebpath, path):
menumatch = re.match(r'(.*)<ul id="links">', body, re.DOTALL + re.IGNORECASE)
if menumatch:
has_menu = True
+
+ handbook = path.startswith("handbook")
return render(request, 'expopage.html', {'editable': editable, 'path': path, 'title': title,
- 'body': body, 'homepage': (path == "index.htm"), 'has_menu': has_menu})
+ 'body': body, 'homepage': (path == "index.htm"), 'has_menu': has_menu, 'handbook': handbook})
def mediapage(request, subpath=None, doc_root=None):
'''This is for special prefix paths /photos/ /site_media/, /static/ etc.