mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-25 08:41:51 +00:00
Removed jQuery
This commit is contained in:
parent
7db7c67065
commit
5ac2e24cc2
@ -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.
|
||||
|
2
media/js/jquery-3.6.0.min.js
vendored
2
media/js/jquery-3.6.0.min.js
vendored
File diff suppressed because one or more lines are too long
@ -34,6 +34,9 @@
|
||||
{% endif%}</li>
|
||||
<li><a href="/infodx.htm">Site index</a></li>
|
||||
<li><a href="/pubs.htm">Reports</a></li>
|
||||
{% if year %}
|
||||
<ul><li><a href="/years/{{ year }}">{{ year }}</a></li></ul>
|
||||
{% endif %}
|
||||
<li><a href="/guidebook/areas.htm">Areas</a></li>
|
||||
<li><a href="/expedition/2019">Troggle</a></li>
|
||||
<li><form name=P method=get action="/search" target="_top">
|
||||
|
Loading…
Reference in New Issue
Block a user