From 100209ea16ab7eec6e89d9e4935190e6c5ae4198 Mon Sep 17 00:00:00 2001 From: Philip Sargent <philip.sargent@klebos.com> Date: Sat, 1 May 2021 00:19:04 +0100 Subject: [PATCH] add cave column to wallets report --- templates/manywallets.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/templates/manywallets.html b/templates/manywallets.html index 4c08c51..ae01e0f 100644 --- a/templates/manywallets.html +++ b/templates/manywallets.html @@ -10,7 +10,7 @@ plans and elevations. It also contains scans of centre-line survex output on whi hand-drawn passage sections are drawn. These hand-drawn passages will eventually be traced to produce Tunnel or Therion drawings and eventually the final complete cave survey. <table width=95%> -<tr><th>Scans folder</th><th>Files</th><th>Survex blocks</th></tr> +<tr><th>Scans folder</th><th>Files</th><th>Survex blocks</th><th>Cave</th></tr> {% for scanswallet in manywallets %} <tr> <td style="padding:2px"><a href="{{scanswallet.get_absolute_url}}">{{scanswallet.walletname}}</a></td> @@ -20,6 +20,14 @@ traced to produce Tunnel or Therion drawings and eventually the final complete c <a href="{% url "svx" survexblock.survexfile.path %}">{{survexblock}}</a> {% endfor %} </td> + <td style="padding:2px"> + {% for survexblock in scanswallet.survexblock_set.all %} + {% ifchanged survexblock.survexfile.cave %} + <a href="{% url "cave" survexblock.survexfile.cave %}">{{survexblock.survexfile.cave}}</a> + {% endifchanged %} + + {% endfor %} + </td> </tr> {% endfor %} </table>