summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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