forked from expo/troggle
remove survexblock webpage - redundant
This commit is contained in:
@@ -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'))
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user