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

Messing with millenialcaves.html or similar

This commit is contained in:
Rad 2019-02-26 00:43:05 +00:00
parent 6c94027a26
commit 656460e0ab
2 changed files with 4 additions and 28 deletions

View File

@ -17,6 +17,7 @@ import re, urlparse
from django.shortcuts import get_object_or_404 from django.shortcuts import get_object_or_404
import settings import settings
from PIL import Image, ImageDraw, ImageFont from PIL import Image, ImageDraw, ImageFont
import string, os, sys, subprocess import string, os, sys, subprocess
@ -61,7 +62,7 @@ def caveindex(request):
def millenialcaves(request): def millenialcaves(request):
#RW messing around area #RW messing around area
caves = Cave.objects.all()
return HttpResponse("It's Rad breaking things") return HttpResponse("It's Rad breaking things")

View File

@ -5,38 +5,13 @@
{% block content %} {% block content %}
<h1>Cave Index</h1>
123 testing 123 testing 123 testing 123 testing
<h3>Notable caves</h3> {{ somenonsense }}
<ul>
{% for cave in notablecaves %} {% for cave in notablecaves %}
<li> Also update <a href="{{ cave.fixedfield }}">wrap {{ cave.fixedfield }}wrap </a> </li> <li> Also update <a href="{{ cave.fixedfield }}">wrap {{ cave.fixedfield }}wrap </a> </li>
{% endfor %} {% endfor %}
</ul>
<h3>1623</h3>
<table class="searchable">
{% for cave in caves1623 %}
<tr><td> <a href="{{ cave.url }}">{% if cave.kataster_number %}{{ cave.kataster_number }}{% else %}{{cave.unofficial_number }}{%endif %} {{cave.official_name|safe}}</a> </td></tr>
{% endfor %}
</table>
<h3>1626</h3>
<ul class="searchable">
{% for cave in caves1626 %}
<li> <a href="{{ cave.url }}">{% if cave.kataster_number %}{{ cave.kataster_number }}{% else %}{{cave.unofficial_number }}{%endif %} {{cave.official_name|safe}}</a> </li>
{% endfor %}
</ul>
<a href="{% url "newcave" %}">New Cave</a>
{% endblock %} {% endblock %}