summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2022-09-25 22:39:01 +0300
committerPhilip Sargent <philip.sargent@klebos.com>2022-09-25 22:39:01 +0300
commitf0195682f205e2f701b51a29a0385b6da2e66f89 (patch)
treece31dfe33f48efed78fa48a100978a929f5f0048
parent2f64e2d4c1cd1c9bbc8a97056a480571d86f345d (diff)
downloadtroggle-f0195682f205e2f701b51a29a0385b6da2e66f89.tar.gz
troggle-f0195682f205e2f701b51a29a0385b6da2e66f89.tar.bz2
troggle-f0195682f205e2f701b51a29a0385b6da2e66f89.zip
Now shows cave id even if no *ref
-rw-r--r--templates/manywallets.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/manywallets.html b/templates/manywallets.html
index 3303c9d..5810ac9 100644
--- a/templates/manywallets.html
+++ b/templates/manywallets.html
@@ -35,7 +35,10 @@ see https://docs.djangoproject.com/en/3.2/ref/models/querysets/#prefetch-related
{% ifchanged survexblock.survexfile.cave %}
<a href="/cave/scans/{{survexblock.survexfile.cave.slug}}">{{survexblock.survexfile.cave.slug}}</a>
{% endifchanged %}
-
+ {% empty %}
+ {% if scanswallet.cave %}
+ <em><a href="/cave/scans/{{scanswallet.cave}}">{{scanswallet.cave}}</a></em>
+ {% endif %}
{% endfor %}
</td>
</tr>