diff --git a/templates/manywallets.html b/templates/manywallets.html index 04fd42a63..3303c9dbf 100644 --- a/templates/manywallets.html +++ b/templates/manywallets.html @@ -12,7 +12,7 @@ traced to produce Tunnel or Therion drawings and eventually the final complete c

See also wallets

@@ -33,7 +33,7 @@ see https://docs.djangoproject.com/en/3.2/ref/models/querysets/#prefetch-related {% for survexblock in scanswallet.survexblock_set.all %} {% ifchanged survexblock.survexfile.cave %} - /{{survexblock.survexfile.cave.slug}} + {{survexblock.survexfile.cave.slug}} {% endifchanged %} {% endfor %} diff --git a/templates/personwallets.html b/templates/personwallets.html index 675c3ac83..147f0477e 100644 --- a/templates/personwallets.html +++ b/templates/personwallets.html @@ -14,7 +14,7 @@ traced to produce Tunnel or Therion drawings and eventually the final complete c

See also wallets

{% include 'wallet_table.html' %} @@ -28,7 +28,15 @@ traced to produce Tunnel or Therion drawings and eventually the final complete c {% if wallet.date %}{{wallet.date}}{% else %} {% endif %} {% if wallet.name %}{{wallet.name}}{% else %}{% if wallet.displaynames %} {% for dn in wallet.displaynames %}{{dn}}{%if not forloop.last %}, {% endif %} {% endfor %}{% else %} {% endif %}{% endif %} {{wallet.persons}} - {% if wallet.cave %}{{wallet.cave}}{% else %} {% endif %} + + {% if wallet.cave %} + {% if wallet.cave.slug %} + {{wallet.cave}} + {% else %} + {{wallet.cave}} + {% endif %} + {% else %} + {% endif %} {{wallet.singlescan_set.all|length}} diff --git a/templates/wallet_table.html b/templates/wallet_table.html index f35d28aa9..b83bb16ad 100644 --- a/templates/wallet_table.html +++ b/templates/wallet_table.html @@ -22,7 +22,15 @@ {{wallet.walletname}} {% if wallet.date %}{{wallet.date}}{% else %} {% endif %} - {% if wallet.cave %}{{wallet.cave}}{% else %} {% endif %} + + {% if wallet.cave %} + {% if wallet.cave.slug %} + {{wallet.cave}} + {% else %} + {{wallet.cave}} + {% endif %} + {% else %} + {% endif %} {% if wallet.name %}{{wallet.name}}{% else %}{% if wallet.displaynames %} {% for dn in wallet.displaynames %}{{dn}}{%if not forloop.last %}, {% endif %} {% endfor %}{% else %} {% endif %}{% endif %} {% for survexblock in wallet.survexblock_set.all %} diff --git a/templates/walletform.html b/templates/walletform.html index 41df05122..e1520fead 100644 --- a/templates/walletform.html +++ b/templates/walletform.html @@ -138,7 +138,7 @@
diff --git a/templates/yearwallets.html b/templates/yearwallets.html index 51a56c0f7..a6391e363 100644 --- a/templates/yearwallets.html +++ b/templates/yearwallets.html @@ -15,7 +15,7 @@ traced to produce Tunnel or Therion drawings and eventually the final complete c

See also wallets