summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/personwallets.html4
-rw-r--r--templates/wallet_table.html5
-rw-r--r--templates/yearwallets.html4
3 files changed, 7 insertions, 6 deletions
diff --git a/templates/personwallets.html b/templates/personwallets.html
index 147f047..255d03e 100644
--- a/templates/personwallets.html
+++ b/templates/personwallets.html
@@ -30,8 +30,8 @@ traced to produce Tunnel or Therion drawings and eventually the final complete c
<td style="padding:2px">{{wallet.persons}}</td>
<td style="padding:2px">
{% if wallet.cave %}
- {% if wallet.cave.slug %}
- <a href="/cave/scans/{{wallet.cave.slug}}">{{wallet.cave}}</a>
+ {% if wallet.caveobj.slug %}
+ <a href="/cave/scans/{{wallet.caveobj.slug}}">{{wallet.cave}}</a>
{% else %}
{{wallet.cave}}
{% endif %}
diff --git a/templates/wallet_table.html b/templates/wallet_table.html
index b83bb16..1d99f27 100644
--- a/templates/wallet_table.html
+++ b/templates/wallet_table.html
@@ -24,12 +24,13 @@
<td style="padding:2px">{% if wallet.date %}{{wallet.date}}{% else %} {% endif %}</td>
<td style="padding:2px">
{% if wallet.cave %}
- {% if wallet.cave.slug %}
- <a href="/cave/scans/{{wallet.cave.slug}}">{{wallet.cave}}</a>
+ {% if wallet.caveobj.slug %}
+ <a href="/cave/scans/{{wallet.caveobj.slug}}">{{wallet.cave}}</a>
{% else %}
{{wallet.cave}}
{% endif %}
{% else %}
+ <em>No wallet.cave {{wallet.cave}}</em>
{% endif %}</td>
<td style="padding:2px">{% if wallet.name %}{{wallet.name}}{% 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>
diff --git a/templates/yearwallets.html b/templates/yearwallets.html
index a6391e3..32545ba 100644
--- a/templates/yearwallets.html
+++ b/templates/yearwallets.html
@@ -40,8 +40,8 @@ traced to produce Tunnel or Therion drawings and eventually the final complete c
<td style="padding:2px">{{wallet.persons}}</td>
<td style="padding:2px">
{% if wallet.cave %}
- {% if wallet.cave.slug %}
- <a href="/cave/scans/{{wallet.cave.slug}}">{{wallet.cave}}</a>
+ {% if wallet.caveobj.slug %}
+ <a href="/cave/scans/{{wallet.caveobj.slug}}">{{wallet.cave}}</a>
{% else %}
{{wallet.cave}}
{% endif %}