summaryrefslogtreecommitdiffstats
path: root/templates/wallet_table.html
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-10-21 16:22:20 +0300
committerPhilip Sargent <philip.sargent@gmail.com>2023-10-21 16:22:20 +0300
commite7a0c57330a9c3808531b4d401d0cedf0f0c0638 (patch)
tree83eea4cf4da7a90b1f9062bf1988ef45f9d3ef5c /templates/wallet_table.html
parent24029be7d3406e4c3ce7790c066b4ad6033c4202 (diff)
downloadtroggle-e7a0c57330a9c3808531b4d401d0cedf0f0c0638.tar.gz
troggle-e7a0c57330a9c3808531b4d401d0cedf0f0c0638.tar.bz2
troggle-e7a0c57330a9c3808531b4d401d0cedf0f0c0638.zip
wallets & caves now many:many
Diffstat (limited to 'templates/wallet_table.html')
-rw-r--r--templates/wallet_table.html16
1 files changed, 6 insertions, 10 deletions
diff --git a/templates/wallet_table.html b/templates/wallet_table.html
index 7cf6f49..3f90152 100644
--- a/templates/wallet_table.html
+++ b/templates/wallet_table.html
@@ -1,6 +1,6 @@
<!-- this is an INCLUDED template wallet_table.html-->
<table width=95%>
-<tr><th>Wallet</th><th width=15%>Wallet Date</th><th>Cave</th><th>Wallet Name</th><th>Survex survey length</th>
+<tr><th>Wallet</th><th width=15%>Wallet Date</th><th>Cave(s)</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>
@@ -22,15 +22,11 @@
<td style="padding:2px"><a href="{{wallet.get_absolute_url}}">{{wallet.walletname}}</a></td>
<td style="padding:2px">{% if wallet.walletdate %}{{wallet.walletdate}}{% else %} {% endif %}</td>
- <td style="padding:2px">
- {% if wallet.cave %}
- {% if wallet.caveobj.slug %}
- <a href="/cave/scans/{{wallet.caveobj.slug}}">{{wallet.cave}}</a>
- {% else %}
- {{wallet.cave}}
- {% endif %}
- {% else %}
- {% endif %}</td>
+ <td style="padding:2px; font-family: monospace; font-size: 90%;">
+ {% for c in wallet.caves.all %}
+ <a href="/cave/scans/{{c.slug}}">{{c}}</a>
+ {% endfor %}
+ </td>
<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 %}