diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2022-08-16 17:42:13 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2022-08-16 17:42:13 +0300 |
commit | 1a49e5347fb6083be8475a9d2ee9a0da0ef78404 (patch) | |
tree | 483f558c14d3393020dd1218d87cb7461a41798c | |
parent | 51f5261bfccbcc1358bc9b6aaf3f0ce5244aabc4 (diff) | |
download | troggle-1a49e5347fb6083be8475a9d2ee9a0da0ef78404.tar.gz troggle-1a49e5347fb6083be8475a9d2ee9a0da0ef78404.tar.bz2 troggle-1a49e5347fb6083be8475a9d2ee9a0da0ef78404.zip |
cleaner table for None values
-rw-r--r-- | templates/cavewallets.html | 2 | ||||
-rw-r--r-- | templates/personwallets.html | 2 | ||||
-rw-r--r-- | templates/yearwallets.html | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/templates/cavewallets.html b/templates/cavewallets.html index 20dfb0c..86c85b9 100644 --- a/templates/cavewallets.html +++ b/templates/cavewallets.html @@ -27,7 +27,7 @@ traced to produce Tunnel or Therion drawings and eventually the final complete c <td style="padding:2px"><a href="{{wallet.get_absolute_url}}">{{wallet.walletname}}</a></td> <td style="padding:2px">{% if wallet.date %}{{wallet.date}}{% else %} {% endif %}</td> - <td style="padding:2px">{{wallet.name}}</td> + <td style="padding:2px">{% if wallet.name %}{{wallet.name}}{% else %} {% endif %}</td> <td style="padding:2px">{{wallet.persons}}</td> <td align="center" style="padding:2px"><a href="{{wallet.get_absolute_url}}">{{wallet.singlescan_set.all|length}}</a></td> diff --git a/templates/personwallets.html b/templates/personwallets.html index c7ea152..dd1ae20 100644 --- a/templates/personwallets.html +++ b/templates/personwallets.html @@ -26,7 +26,7 @@ traced to produce Tunnel or Therion drawings and eventually the final complete c <td style="padding:2px"><a href="{{wallet.get_absolute_url}}">{{wallet.walletname}}</a></td> <td style="padding:2px" >{% if wallet.date %}{{wallet.date}}{% else %} {% endif %}</td> - <td style="padding:2px">{{wallet.name}}</td> + <td style="padding:2px">{% if wallet.name %}{{wallet.name}}{% else %} {% endif %}</td> <td style="padding:2px">{{wallet.persons}}</td> <td style="padding:2px">{{wallet.cave}}</td> diff --git a/templates/yearwallets.html b/templates/yearwallets.html index 40f1379..3036ccc 100644 --- a/templates/yearwallets.html +++ b/templates/yearwallets.html @@ -26,7 +26,7 @@ traced to produce Tunnel or Therion drawings and eventually the final complete c <td style="padding:2px"><a href="{{wallet.get_absolute_url}}">{{wallet.walletname}}</a></td> <td style="padding:2px">{% if wallet.date %}{{wallet.date}}{% else %} {% endif %}</td> - <td style="padding:2px">{{wallet.name}}</td> + <td style="padding:2px">{% if wallet.name %}{{wallet.name}}{% else %} {% endif %}</td> <td style="padding:2px">{{wallet.persons}}</td> <td style="padding:2px">{{wallet.cave}}</td> |