2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-25 08:41:51 +00:00

Now shows cave id even if no *ref

This commit is contained in:
Philip Sargent 2022-09-25 22:39:01 +03:00
parent 2f64e2d4c1
commit f0195682f2

View File

@ -35,7 +35,10 @@ see https://docs.djangoproject.com/en/3.2/ref/models/querysets/#prefetch-related
{% ifchanged survexblock.survexfile.cave %} {% ifchanged survexblock.survexfile.cave %}
<a href="/cave/scans/{{survexblock.survexfile.cave.slug}}">{{survexblock.survexfile.cave.slug}}</a> <a href="/cave/scans/{{survexblock.survexfile.cave.slug}}">{{survexblock.survexfile.cave.slug}}</a>
{% endifchanged %} {% endifchanged %}
{% empty %}
{% if scanswallet.cave %}
<em><a href="/cave/scans/{{scanswallet.cave}}">{{scanswallet.cave}}</a></em>
{% endif %}
{% endfor %} {% endfor %}
</td> </td>
</tr> </tr>