diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-10-08 00:06:12 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-10-08 00:06:12 +0300 |
commit | 31461531fce096c3823be071767d7a2baea53773 (patch) | |
tree | 20f969878c3f576bb73d5a18abb2bd1d77b99d32 | |
parent | 152156227d2b3aeb86b03245e9ab40ebcdbf9da6 (diff) | |
download | troggle-31461531fce096c3823be071767d7a2baea53773.tar.gz troggle-31461531fce096c3823be071767d7a2baea53773.tar.bz2 troggle-31461531fce096c3823be071767d7a2baea53773.zip |
add 1624 caves
-rw-r--r-- | core/views/caves.py | 8 | ||||
-rw-r--r-- | templates/caveindex.html | 27 |
2 files changed, 33 insertions, 2 deletions
diff --git a/core/views/caves.py b/core/views/caves.py index 5f939dc..bd1de70 100644 --- a/core/views/caves.py +++ b/core/views/caves.py @@ -132,6 +132,7 @@ def caveindex(request): pass caves1623 = list(Cave.objects.filter(areacode="1623")) + caves1624 = list(Cave.objects.filter(areacode="1624")) caves1626 = list(Cave.objects.filter(areacode="1626")) caves1627 = list(Cave.objects.filter(areacode="1627")) caves1623.sort(key=caveKey) @@ -140,7 +141,12 @@ def caveindex(request): return render( request, "caveindex.html", - {"caves1623": caves1623, "caves1626": caves1626, "caves1627": caves1627, "notablecaves": getnotablecaves(), "cavepage": True}, + {"caves1623": caves1623, + "caves1626": caves1626, + "caves1627": caves1627, + "caves1624": caves1624, + "notablecaves": getnotablecaves(), + "cavepage": True}, ) def entranceindex(request): diff --git a/templates/caveindex.html b/templates/caveindex.html index 4c2fb52..3b69886 100644 --- a/templates/caveindex.html +++ b/templates/caveindex.html @@ -84,6 +84,7 @@ Black triangle <span style="color: black">▲</span> against a name indicat <a href="/noinfo/cave-number-index">Cave Number Index - kept updated</a> </p> + <h3>1627</h3> <div style="column-count: 3;"> <table class="searchable"> @@ -98,11 +99,35 @@ Black triangle <span style="color: black">▲</span> against a name indicat {% endif %} {% if cave.survex_file %}{% else %}<span style="color: red">*</span>{% endif %} </td></tr> + {% endfor %} +</table> +</div> + + <p style="text-align:right"> + <a href="{% url "newcave" %}">New Cave</a><br> + <a href="/noinfo/cave-number-index">Cave Number Index - kept updated</a> + </p> + +<h3>1624</h3> +<div style="column-count: 3;"> +<table class="searchable"> + {% for cave in caves1624 %} + <tr><td><a href="{{ cave.url }}">{% if cave.kataster_number %}{{ cave.kataster_number }} {{cave.official_name|safe}}</a> {% if cave.unofficial_number %}({{cave.unofficial_number }}){% endif %}{% else %}{{cave.unofficial_number }} {{cave.official_name|safe}}</a> {% endif %} + {% if cave.filename %} + {% if cave.no_location %}<span style="color: black">▲</span>{% endif %} + {% if cave.entrances %} + {% else %}<span style="color: orange">▲</span> + {% endif %} + {% else %}<span style="color: blue">▼</span> + {% endif %} + {% if cave.survex_file %}{% else %}<span style="color: red">*</span>{% endif %} + </td></tr> {% endfor %} </table> -</div> +</div> + <p style="text-align:right"> <a href="{% url "newcave" %}">New Cave</a><br> <a href="/noinfo/cave-number-index">Cave Number Index - kept updated</a> |