2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-14 22:07:11 +00:00

CaveView status is now documented

This commit is contained in:
2021-11-06 22:59:10 +02:00
parent 5723f57fc5
commit 73ffb509f7
2 changed files with 30 additions and 8 deletions

View File

@@ -219,9 +219,9 @@ def rendercave(request, cave, slug, cave_id=''):
# NOTE the template itself loads the 3d file using javascript before it loads anything else.
# Django cannot see what this javascript is doing, so we need to ensure that the 3d file exists first.
# run this just for the side-effect of generating the 3d file? Nope, crashes.
# TO DO - restructure this so that the regeneration is callable from here.
#discard_response = cave3d(request, cave_id=cave_id)
# So only do this render if a valid .3d file exists. TO BE DONE
# see design docum in troggle/templates/cave.html
# see rendercave() in troggle/core/views/caves.py
templatefile = 'cave.html'
if request.user.is_authenticated:
editable = True