diff options
Diffstat (limited to 'templates/svxcaves.html')
-rw-r--r-- | templates/svxcaves.html | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/templates/svxcaves.html b/templates/svxcaves.html index 2f3506d..1bea274 100644 --- a/templates/svxcaves.html +++ b/templates/svxcaves.html @@ -1,4 +1,4 @@ -<!-- svxcavesingle.html - this text visible because this template has been included --> +<!-- svxcaves.html - this text visible because this template has been included --> {% extends "base.html" %} {% block title %}List of survex files{% endblock %} {% block content %} @@ -13,8 +13,9 @@ <p>Wallets: <a href="/cave/scans/{{cave|safe}}">{{cave|safe}}</a> </p> <p> -{% for svxdir in cave.sds %} - <a href="#T_{{svxdir.primarysurvexfile.path}}">{{svxdir.path}}</a> +{% for svxprim in cave.sds %} + <a href="#T_{{svxprim}}">{{svxprim}}</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 because you followed a link from <a href="/survexfile/caves/">the master caves' survex list</a> page which showed that such survex files clearly existed, and yet there is nothing here but a blank; then this will be because <br> @@ -39,11 +40,11 @@ to go to a form to correct the online data. Instructions for filling in this form are in this part <a href="/handbook/survey/caveentry.html"> of the survey handbook</a>. </p> -{% for svxdir in cave.sds %} - <h3 id="T_{{svxdir.primarysurvexfile.path}}">{{svxdir.path}}</h3> +{% for svxprim in cave.sds %} + <h3 id="T_{{svxprim.path}}">{{svxprim.path}}</h3> <table> <tr><th>Survex file</th><th>Block</th><th>Date</th><th>Explorers</th><th>length</th><th>Titles</th><th>Scans</th></tr> - {% for survexfile in svxdir.survexfile_set.all %} + {% for survexfile in svxprim.primarysurvex.all %} <tr> {% if survexfile.exists %} <td rowspan="{{survexfile.survexblock_set.all|length|add:"1"}}"> @@ -51,7 +52,7 @@ to go to a form to correct the online data. <td class="survexnewfile" rowspan="{{survexfile.survexblock_set.all|length|add:"1"}}"> {% endif %} - {% if survexfile == svxdir.primarysurvexfile %} + {% if survexfile == svxprim.primarysurvexfile %} <a href="{% url "svx" survexfile.path %}"><b>{% url "svx" survexfile.path %}</b></a> {% else %} <a href="{% url "svx" survexfile.path %}"><i><small>{% url "svx" survexfile.path %}</small></i></a><!-- would like to extract only the last bit. Some javascript useful ?--> @@ -98,6 +99,6 @@ to go to a form to correct the online data. {% endfor %} <!-- survexblock --> {% endfor %} <!-- survexfile --> </table> -{% endfor %} <!-- svxdir --> +{% endfor %} <!-- svxprim --> {% endfor %} <!-- caves --> {% endblock %} |