diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2021-03-26 21:19:31 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2021-03-26 21:19:31 +0000 |
commit | dba0fd8b2008dcb5de24aeb8348fd9a0946b8255 (patch) | |
tree | c7ba07e3e856dfba7d3c8c77514bdbd54f4726fe /core | |
parent | ec83c1ff122b7a1d933225335ef962b9c9b8612c (diff) | |
download | troggle-dba0fd8b2008dcb5de24aeb8348fd9a0946b8255.tar.gz troggle-dba0fd8b2008dcb5de24aeb8348fd9a0946b8255.tar.bz2 troggle-dba0fd8b2008dcb5de24aeb8348fd9a0946b8255.zip |
remove survexblock webpage - redundant
Diffstat (limited to 'core')
-rw-r--r-- | core/templatetags/survex_markup.py | 7 | ||||
-rw-r--r-- | core/views_caves.py | 8 |
2 files changed, 7 insertions, 8 deletions
diff --git a/core/templatetags/survex_markup.py b/core/templatetags/survex_markup.py index d6ddd0e..94ba97d 100644 --- a/core/templatetags/survex_markup.py +++ b/core/templatetags/survex_markup.py @@ -7,6 +7,13 @@ import re register = template.Library() # seems to add extra lines between the commented lines, which isn't so great. + +# Simple use in svxfile.html produces a textarea, double-spacing and no colouring. +# so this is going to take some work, and we are better off not using it but getting +# syntax colouring to work with CodeMirror instead. PPhilip S. 28 March 2021. + +# The only template which used it, survexblock.html, has been removed as unnecessary. + regexes = [] regexes.append((re.compile(r"(;.*)$", re.IGNORECASE|re.MULTILINE), r'<span class = "comment">\1</span>\n')) diff --git a/core/views_caves.py b/core/views_caves.py index 5820857..95de183 100644 --- a/core/views_caves.py +++ b/core/views_caves.py @@ -277,14 +277,6 @@ def entranceSlug(request, slug): else: return render(request,'entranceslug.html', {'entrance': entrance}) -def survexblock(request, survexpath): - survexpath = re.sub("/", ".", survexpath) - print("jjjjjj", survexpath) - survexblock = models.SurvexBlock.objects.get(survexpath=survexpath) - #ftext = survexblock.filecontents() - ftext = survexblock.text - return render(request,'survexblock.html', {'survexblock':survexblock, 'ftext':ftext, }) - def surveyindex(request): surveys=Survey.objects.all() expeditions=Expedition.objects.order_by("-year") |