mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-17 15:47:10 +00:00
undropped caves page
This commit is contained in:
@@ -205,6 +205,24 @@ def getnotablecaves():
|
|||||||
print(notablecaves)
|
print(notablecaves)
|
||||||
return notablecaves
|
return notablecaves
|
||||||
|
|
||||||
|
def caves_undropped(request):
|
||||||
|
caves1623 = list(Cave.objects.filter(areacode="1623",unexplored="True"))
|
||||||
|
caves1626 = list(Cave.objects.filter(areacode="1626",unexplored="True"))
|
||||||
|
|
||||||
|
caves1623.sort(key=caveKey)
|
||||||
|
caves1626.sort(key=caveKey)
|
||||||
|
|
||||||
|
|
||||||
|
allcaves = caves1623 + caves1626
|
||||||
|
|
||||||
|
return render(
|
||||||
|
request,
|
||||||
|
"cavesundropped.html",
|
||||||
|
{"caves1623": caves1623,
|
||||||
|
"caves1626": caves1626,
|
||||||
|
"cavepage": True, "year": current_expo()},
|
||||||
|
)
|
||||||
|
|
||||||
def caves_recent(request):
|
def caves_recent(request):
|
||||||
caves1623 = list(Cave.objects.filter(areacode="1623"))
|
caves1623 = list(Cave.objects.filter(areacode="1623"))
|
||||||
caves1626 = list(Cave.objects.filter(areacode="1626"))
|
caves1626 = list(Cave.objects.filter(areacode="1626"))
|
||||||
|
|||||||
@@ -22,7 +22,8 @@
|
|||||||
|
|
||||||
{% include 'cave_red_star.html' %}
|
{% include 'cave_red_star.html' %}
|
||||||
<p>
|
<p>
|
||||||
See <em><a href="/caves">All Caves</a></em> for all the caves in areas 1623, 1626, 1624, 1627
|
See <em><a href="/caves">All Caves</a></em> for all the caves in areas 1623, 1626, 1624, 1627 <br />
|
||||||
|
See <em><a href="/caves_undropped">Undropped Caves</a></em> for all unexplored caves
|
||||||
|
|
||||||
<p style="text-align:right">
|
<p style="text-align:right">
|
||||||
<a href="{% url "newcave" %}">New Cave</a><br>
|
<a href="{% url "newcave" %}">New Cave</a><br>
|
||||||
|
|||||||
0
templates/cavesallindex - Copy.html:Zone.Identifier
Normal file
0
templates/cavesallindex - Copy.html:Zone.Identifier
Normal file
@@ -22,7 +22,8 @@
|
|||||||
|
|
||||||
{% include 'cave_red_star.html' %}
|
{% include 'cave_red_star.html' %}
|
||||||
|
|
||||||
<p>Go to <a href="/caves_recent">Recent Caves</a> for a shorter list of recent caves.
|
<p>See <em><a href="/caves_undropped">Undropped Caves</a></em> for all unexplored caves<br />
|
||||||
|
See <em> <a href="/caves_recent">Recent Caves</a></em> for a shorter list of recent caves.
|
||||||
|
|
||||||
<p style="text-align:right">
|
<p style="text-align:right">
|
||||||
<a href="{% url "newcave" %}">New Cave</a><br>
|
<a href="{% url "newcave" %}">New Cave</a><br>
|
||||||
|
|||||||
40
templates/cavesundropped.html
Normal file
40
templates/cavesundropped.html
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
{% extends "cavebase.html" %}
|
||||||
|
|
||||||
|
{% block title %}Undescended Caves{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
|
||||||
|
<h1>Undescended Caves</h1>
|
||||||
|
|
||||||
|
{% include 'cave_red_star.html' %}
|
||||||
|
|
||||||
|
<p>
|
||||||
|
See <em><a href="/caves">All Caves</a></em> for all the caves in areas 1623, 1626, 1624, 1627 <br />
|
||||||
|
See <em><a href="/caves_recent">Recent Caves</a></em> for a full list of recent caves.
|
||||||
|
|
||||||
|
<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>1623</h3>
|
||||||
|
<div style="column-count: 3;">
|
||||||
|
|
||||||
|
{% for cave in caves1623 %}
|
||||||
|
{% include 'cavelist_columns.html' %}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<h3>1626</h3>
|
||||||
|
<div style="column-count: 3;">
|
||||||
|
|
||||||
|
{% for cave in caves1626 %}
|
||||||
|
{% include 'cavelist_columns.html' %}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
2
urls.py
2
urls.py
@@ -11,6 +11,7 @@ from troggle.core.views.caves import (
|
|||||||
cave3d,
|
cave3d,
|
||||||
cave_debug,
|
cave_debug,
|
||||||
caves_recent,
|
caves_recent,
|
||||||
|
caves_undropped,
|
||||||
cavesall,
|
cavesall,
|
||||||
cavepage,
|
cavepage,
|
||||||
caveQMs,
|
caveQMs,
|
||||||
@@ -159,6 +160,7 @@ trogglepatterns = [
|
|||||||
path('folk_export', folk_export, name="folk_export"),
|
path('folk_export', folk_export, name="folk_export"),
|
||||||
path('caveslist', caveslist, name="caveslist"),
|
path('caveslist', caveslist, name="caveslist"),
|
||||||
path('caves_recent', caves_recent, name="caves_recent"),
|
path('caves_recent', caves_recent, name="caves_recent"),
|
||||||
|
path('caves_undropped', caves_undropped, name="caves_undropped"),
|
||||||
|
|
||||||
path('entrances', entranceindex, name="entranceindex"),
|
path('entrances', entranceindex, name="entranceindex"),
|
||||||
path('enttags', entrancetags, name="entrancetags"),
|
path('enttags', entrancetags, name="entrancetags"),
|
||||||
|
|||||||
Reference in New Issue
Block a user