forked from expo/troggle
Added a sub menu when in the handbook directory. Imcreased width of edit preview
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user