{{wallet.walletname}} |
{% if wallet.walletdate %}{{wallet.walletdate}}{% 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 %} |
+ {% if wallet.name %}{{wallet.name|truncatechars:20}}{% else %}{% if wallet.displaynames %} {% for dn in wallet.displaynames %}{{dn}}{%if not forloop.last %}, {% endif %} {% endfor %}{% else %} {% endif %}{% endif %} |
{{wallet.persons}} |
{% if wallet.cave %}
diff --git a/templates/wallet_table.html b/templates/wallet_table.html
index 1d3e2fc..635ab39 100644
--- a/templates/wallet_table.html
+++ b/templates/wallet_table.html
@@ -1,6 +1,6 @@
-Wallet | Wallet Date | Cave | Wallet Name | Survex |
+
---|
Wallet | Wallet Date | Cave | Wallet Name | Survex |
S |
@@ -31,7 +31,7 @@
{% 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 %} |
+ {% if wallet.name %}{{wallet.name|truncatechars:20}}{% 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 %}
svx{{ forloop.counter }}
diff --git a/templates/yearwallets.html b/templates/yearwallets.html
index 2b43fc8..658e890 100644
--- a/templates/yearwallets.html
+++ b/templates/yearwallets.html
@@ -30,13 +30,13 @@ traced to produce Tunnel or Therion drawings and eventually the final complete c
{% include 'wallet_table.html' %}
-Wallet | Wallet Date | Wallet Name | People | Cave | Scans | Survex blocks | Drawings using these scans |
+Wallet | Wallet Date | Wallet Name | People | Cave | Scans | Survex blocks | Drawings using these scans |
{% for wallet in manywallets|dictsort:"walletname" %}
{{wallet.walletname}} |
{% if wallet.walletdate %}{{wallet.walletdate}}{% 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 %} |
+ {% if wallet.name %}{{wallet.name|truncatechars:20}}{% else %}{% if wallet.displaynames %} {% for dn in wallet.displaynames %}{{dn}}{%if not forloop.last %}, {% endif %} {% endfor %}{% else %} {% endif %}{% endif %} |
{{wallet.persons}} |
{% if wallet.cave %}
@@ -51,7 +51,7 @@ traced to produce Tunnel or Therion drawings and eventually the final complete c
| {{wallet.singlescan_set.all|length}} |
{% for survexblock in wallet.survexblock_set.all %}
- {{survexblock}}
+ {{survexblock|truncatechars:20}}
{% endfor %}
|
|
---|
|