Removed jQuery

This commit is contained in:
Martin Green
2022-06-24 21:58:00 +01:00
parent 7db7c67065
commit 5ac2e24cc2
3 changed files with 15 additions and 3 deletions

View File

@@ -175,6 +175,7 @@ def expowebpage(request, expowebpath, path):
if menumatch:
has_menu = True
#Determine which caves this page relates to
m = re.search(r"(162\d\/[^\/]+)[\/\.]", path, re.DOTALL + re.IGNORECASE)
if m:
path_start, = m.groups()
@@ -182,9 +183,19 @@ def expowebpage(request, expowebpath, path):
else:
parent_caves = None
#Determine if this page relates to a particular year
m = re.search(r"years\/(\d\d\d\d)\/.*", path, re.DOTALL + re.IGNORECASE)
if m:
year, = m.groups()
else:
year = None
#Determine if this page is part of the handbook
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, 'handbook': handbook, 'parent_caves': parent_caves})
'body': body, 'homepage': (path == "index.htm"), 'has_menu': has_menu,
'year': year,'handbook': handbook, 'parent_caves': parent_caves})
def mediapage(request, subpath=None, doc_root=None):
'''This is for special prefix paths /photos/ /site_media/, /static/ etc.