2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-21 23:01:52 +00:00

Orange ▲ for caves with no Entranes

This commit is contained in:
Philip Sargent 2023-10-06 14:57:41 +03:00
parent 0a72e50c90
commit dfdbba6550
2 changed files with 22 additions and 6 deletions

View File

@ -125,7 +125,12 @@ def getnotablecaves():
def caveindex(request):
#allcaves = Cave.objects.all()
allcaves = Cave.objects.filter(areacode="1626") # testing with subset
for c in allcaves:
if c.entrances:
pass
caves1623 = list(Cave.objects.filter(areacode="1623"))
caves1626 = list(Cave.objects.filter(areacode="1626"))
caves1627 = list(Cave.objects.filter(areacode="1627"))

View File

@ -23,8 +23,10 @@
{% endfor %}
</ul>
Red star <span style="color: red">*</span> against a name indicates that no survex file is explicitly associated with the cave (but there might be a *fix somewhere)
Red star <span style="color: red">*</span> against a name indicates that no survex file is explicitly associated with the cave (but there might be a *fix somewhere)<br />
Orange triangle <span style="color: orange">&#x25B2;</span> against a name indicates that the cave has no Entrance.<br />
<!--Blue triangle <span style="color: blue">&#x25BC;</span> against a name indicates that the cave has an Entrance, but no entrances have located survey stations.-->
<h3>1623</h3>
<div style="column-count: 3;">
<table class="searchable">
@ -37,7 +39,10 @@ Red star <span style="color: red">*</span> against a name indicates that no surv
{% endif %}
{% else %}
{{cave.unofficial_number }} {{cave.official_name|safe}}</a>
{% endif %}{% if cave.survex_file %}{% else %}<span style="color: red">*</span>{% endif %}</</td></tr>
{% endif %}
{% if cave.survex_file %}{% else %}<span style="color: red">*</span>{% endif %}
{% if cave.entrances %}{% else %}<span style="color: orange">&#x25B2;</span>{% endif %}
</td></tr>
{% endfor %}
</table>
@ -52,7 +57,10 @@ Red star <span style="color: red">*</span> against a name indicates that no surv
<div style="column-count: 3;">
<table class="searchable">
{% for cave in caves1626 %}
<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.survex_file %}{% else %}<span style="color: red">*</span>{% endif %}</td></tr>
<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.survex_file %}{% else %}<span style="color: red">*</span>{% endif %}
{% if cave.entrances %}{% else %}<span style="color: orange">&#x25B2;</span>{% endif %}
</td></tr>
{% endfor %}
</table>
@ -67,7 +75,10 @@ Red star <span style="color: red">*</span> against a name indicates that no surv
<div style="column-count: 3;">
<table class="searchable">
{% for cave in caves1627 %}
<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.survex_file %}{% else %}<span style="color: red">*</span>{% endif %}</</td></tr>
<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.survex_file %}{% else %}<span style="color: red">*</span>{% endif %}
{% if cave.entrances %}{% else %}<span style="color: orange">&#x25B2;</span>{% endif %}
</td></tr>
{% endfor %}
</table>