summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-01-31 14:49:54 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2023-01-31 14:49:54 +0000
commit57930b7aa55b8d0f8da5b1b3eb357bda130fe9cc (patch)
tree07a3edde637a88fa42071171847dc557c4417aa4
parent76ed80107715da1b01d0dc181f8089594e8e2131 (diff)
downloadtroggle-57930b7aa55b8d0f8da5b1b3eb357bda130fe9cc.tar.gz
troggle-57930b7aa55b8d0f8da5b1b3eb357bda130fe9cc.tar.bz2
troggle-57930b7aa55b8d0f8da5b1b3eb357bda130fe9cc.zip
Show survey length per survex file
-rw-r--r--templates/wallet_table.html4
1 files 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 %}