Linkt to QMs on cave page

This commit is contained in:
Philip Sargent 2022-07-06 11:39:19 +03:00
parent da4d7d6d5e
commit 848043f7f4

View File

@ -4,23 +4,7 @@
{% if cave.survex_file %}
<!--
#Wookey says (Nov.2021) that the CaveView integration was done by Martin Green
#at an expo training weekend.
# This design assumed that all .3d files are in the same folder, as
# specified by THREEDCACHEDIR in localsettings.py which implicitly is
# assuming that all survex files have unique filenames - which is not true
# there are about 20 duplicates, see report items in DataIssues
# http://expo.survex.com/pathsreport
# http://expo.survex.com/dataissues
# This also means that all survex files must be individually run through survex,
# (which takes as much time as the rest of the import procedure for all data).
# Olly says it would be more accurate to just produce one 1623.3d and then to
# separate out the bit for each cave. He's right: we are losing the corrections
# from adjacent caves and surface surveys doing it this way.
# The code is RunSurvexIfNeeded() in parsers/survex.py
# SUGGESTION we shuld just ditch and put ever .3d file in the same folder as
# We put every .3d file in the same folder as
# the .svx file, using the {{svx3d}} template variable set in rendercave() in
# core/views/caves.py but with a full path. THIS IS NOW DONE March 2022.
@ -522,6 +506,12 @@ div#scene {
<h2>Underground Centre Line</h2>
{{ cave.underground_centre_line|safe }}
{% endif %}
{% if cave.get_QMs %}
<h2>QMs</h2>
<a href="{% url 'caveQMs' cave_id|safe %}">QM page for {{ cave_id|safe }}</a>
{% endif %}
{% if cave.survex_file %}
<h2>Survex File</h2>
<p><a href="https://aardgoose.github.io/CaveView.js/">CaveView</a> display of the .3d file is temporarily disabled while we fix things (Nov.2021). See <a href="/handbook/computing/todo.html">/handbook/computing/todo.html</a>.