summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-09-05 23:43:07 +0300
committerPhilip Sargent <philip.sargent@gmail.com>2023-09-05 23:43:07 +0300
commit38d0e855c9278b95ce749329cd69495894fe79f9 (patch)
tree7eb5f7f19c8eb33b8c9b90ae76a438e62f4bdd7c
parentcc9f425fb5fa82ac26db4f14c4c484fb7fd85cf6 (diff)
downloadtroggle-38d0e855c9278b95ce749329cd69495894fe79f9.tar.gz
troggle-38d0e855c9278b95ce749329cd69495894fe79f9.tar.bz2
troggle-38d0e855c9278b95ce749329cd69495894fe79f9.zip
Working on survexdirectory removals..
-rw-r--r--templates/svxcavesingle.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/templates/svxcavesingle.html b/templates/svxcavesingle.html
index 3b51f3b..ea992b9 100644
--- a/templates/svxcavesingle.html
+++ b/templates/svxcavesingle.html
@@ -7,13 +7,16 @@
<h1>Surveys for <a href="/{{cave.url}}">{{cave.official_name}}</a> - id:{{cave}}</h1>
{% endautoescape %}
<!-- the only thing passed into this template is the object identifier for a cave.
-All the processing to extract the survex subdriectories and survex files is done in this template -->
+All the processing to extract the survex subdriectories and survex files is done in this template
+
+CHANGE THAT and do the processing in python were it is easier to see what is going on and where
+we don't need the SUrvexDirectory objects at all-->
<p>Cave description: <a href="/{{cave.url}}">{{cave.url}}</a>
<p>Wallets: <a href="/cave/scans/{{cave|safe}}">{{cave|safe}}</a>
</p>
<p>
-{% for survexdirectory in cave.survexdirectory_set.all %}
+{% for survexdirectory in cave.survexdirectory_set.all %} <!-- redo to use cave.survexfile_set.all() each of which has a .survexdirectory-->
<a href="#T_{{survexdirectory.primarysurvexfile.path}}">{{survexdirectory.path}}</a>
{% empty %}
<p>If you were expecting to see a list of survex files here and a summary table of who did what and when, perhaps