2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-16 12:17:08 +00:00

Fix cave pages to have entrances and description on one page.

Fixes broken links on description and entrance pages.
Removes need for jquery-ui.
This commit is contained in:
expo
2016-07-02 23:42:47 +01:00
parent 496280f3e6
commit 716131f005
2 changed files with 112 additions and 10 deletions

View File

@@ -78,6 +78,7 @@ def caveDescription(request, slug):
return render_with_context(request,'nonpublic.html', {'instance': cave})
else:
return render_with_context(request,'cave_uground_description.html', {'cave': cave})
def caveQMs(request, slug):
cave = Cave.objects.get(caveslug__slug = slug)
if cave.non_public and settings.PUBLIC_SITE and not request.user.is_authenticated():