summaryrefslogtreecommitdiffstats
path: root/templates/survexdir.html
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-09-10 16:35:00 +0300
committerPhilip Sargent <philip.sargent@gmail.com>2023-09-10 16:35:00 +0300
commit9d6552ea22ba953e8d9e8e4891ab387bc43f9ac2 (patch)
tree83cc012f6414bb1243c1567195aa2a8e85b841af /templates/survexdir.html
parent2f6017d6d3e8b447895dbf3c9c2fe8d39ca4ecc4 (diff)
downloadtroggle-9d6552ea22ba953e8d9e8e4891ab387bc43f9ac2.tar.gz
troggle-9d6552ea22ba953e8d9e8e4891ab387bc43f9ac2.tar.bz2
troggle-9d6552ea22ba953e8d9e8e4891ab387bc43f9ac2.zip
ARGE caves, fixed bug in non-numeric ids
Diffstat (limited to 'templates/survexdir.html')
-rw-r--r--templates/survexdir.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/survexdir.html b/templates/survexdir.html
index e6854ef..a0fa1c2 100644
--- a/templates/survexdir.html
+++ b/templates/survexdir.html
@@ -12,7 +12,7 @@
<tr><th>Cave</th><th>Cave primary</th><th>f.primary</th><th>f.path</th></tr>
{% for f in survexfiles %}
<tr>
-<td><a href="/cave/{{f.cave}}">{{f.cave}}</a> {{f.cave.areacode}}{f.cave.subarea}}</td>
+<td><a href="/cave/{{f.cave}}">{{f.cave}}</a> {{f.cave.areacode}}{% if f.cave.subarea %}-{{f.cave.subarea}}{% endif %}</td>
<td>{{f.cave.survex_file}}</td>
<td> {{f.primary}}.svx</td>
<td><span {% if f.pathbad %} style="color:red" {% endif %}><a href="/survexfile/{{f.path}}.svx">{{f.path}}.svx</a></span></td>