From 57930b7aa55b8d0f8da5b1b3eb357bda130fe9cc Mon Sep 17 00:00:00 2001
From: Philip Sargent <philip.sargent@gmail.com>
Date: Tue, 31 Jan 2023 14:49:54 +0000
Subject: [PATCH] Show survey length per survex file

---
 templates/wallet_table.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/templates/wallet_table.html b/templates/wallet_table.html
index bb84f52..d5aead8 100644
--- a/templates/wallet_table.html
+++ b/templates/wallet_table.html
@@ -1,6 +1,6 @@
 
 <table width=95%>
-<tr><th>Wallet</th><th width=15%>Wallet Date</th><th>Cave</th><th>Wallet Name</th><th>Survex</th>
+<tr><th>Wallet</th><th width=15%>Wallet Date</th><th>Cave</th><th>Wallet Name</th><th>Survex survey length</th>
 
 <!-- survex file-->
 <th style="font-family: monospace; font-size: 150%;" title="Survex file exists">S</th>
@@ -34,7 +34,7 @@
     <td style="padding:2px">{% if wallet.name %}{{wallet.name|truncatechars:20}}{% else %}<em>{% if wallet.displaynames %} {% for dn in wallet.displaynames %}{{dn}}{%if not forloop.last %}, {% endif %} {% endfor %}{% else %} {% endif %}</em>{% endif %}</td>
     <td style="padding:2px" align=center>
        {% for survexblock in wallet.survexblock_set.all %}
-      <a href="{% url "svx" survexblock.survexfile.path %}">svx{{ forloop.counter }}</a>
+      <a href="{% url "svx" survexblock.survexfile.path %}">{{ survexblock.legslength|floatformat:0 }}m</a>
     {% endfor %}