diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2022-07-06 11:39:19 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2022-07-06 11:39:19 +0300 |
commit | 848043f7f46e298164b3e7c1c08a54c2fb90c06c (patch) | |
tree | d3b4dd6d633666355266794c90e6073927b1d147 /templates/cave.html | |
parent | da4d7d6d5ee27cdaba46a3172172ac266ed22db3 (diff) | |
download | troggle-848043f7f46e298164b3e7c1c08a54c2fb90c06c.tar.gz troggle-848043f7f46e298164b3e7c1c08a54c2fb90c06c.tar.bz2 troggle-848043f7f46e298164b3e7c1c08a54c2fb90c06c.zip |
Linkt to QMs on cave page
Diffstat (limited to 'templates/cave.html')
-rw-r--r-- | templates/cave.html | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/templates/cave.html b/templates/cave.html index c192af0..f3e8437 100644 --- a/templates/cave.html +++ b/templates/cave.html @@ -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>. |