From 81d58f1275b3cf3f138f3297052af8fff3877762 Mon Sep 17 00:00:00 2001 From: Philip Sargent <philip.sargent@klebos.com> Date: Tue, 27 Apr 2021 14:50:26 +0100 Subject: [PATCH] delete: never implemented properly --- core/views/caves.py | 7 ------- templates/cave_logbook.html | 12 ------------ templates/caveindex.html | 1 - 3 files changed, 20 deletions(-) delete mode 100644 templates/cave_logbook.html diff --git a/core/views/caves.py b/core/views/caves.py index 9d77d33..2751ac2 100644 --- a/core/views/caves.py +++ b/core/views/caves.py @@ -302,13 +302,6 @@ def caveQMs(request, slug): else: return render(request,'cave_qms.html', {'cave': cave}) -def caveLogbook(request, slug): - cave = Cave.objects.get(caveslug__slug = slug) - if cave.non_public and settings.PUBLIC_SITE and not request.user.is_authenticated: - return render(request,'nonpublic.html', {'instance': cave}) - else: - return render(request,'cave_logbook.html', {'cave': cave}) - @login_required_if_public def edit_cave(request, slug=None): '''This is the form that edits all the cave data and writes out an XML file in the :expoweb: repo folder diff --git a/templates/cave_logbook.html b/templates/cave_logbook.html deleted file mode 100644 index e2dd8e4..0000000 --- a/templates/cave_logbook.html +++ /dev/null @@ -1,12 +0,0 @@ - <p> -<table> - {% for logbookentry in cave.logbookentry_set.all %} - {% if logbookentry.title %} - <tr> - <td>{{logbookentry.date}}</td> - <td><a href="{{ logbookentry.get_absolute_url }}">{{logbookentry.title|safe}}</a></td> - </tr> - {% endif %} - {% endfor %} - </table> -</p> diff --git a/templates/caveindex.html b/templates/caveindex.html index af0f56c..b4c4ee3 100644 --- a/templates/caveindex.html +++ b/templates/caveindex.html @@ -28,7 +28,6 @@ <p style="text-align:right"> <a href="{% url "newcave" %}">New Cave</a><br> - <a href="{% url "newentrance" "1623-000" %}">New Entrance</a><br> <a href="/noinfo/cave-number-index">Cave Number Index - kept updated</a> </p> <h3>1623</h3>