2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-25 08:41:51 +00:00

remove duplicate lines, add heading link

This commit is contained in:
Philip Sargent 2022-07-21 10:50:15 +03:00
parent 8245ee103e
commit 5161fce32e
2 changed files with 4 additions and 5 deletions

View File

@ -80,5 +80,5 @@ def cavewallets(request, cave_id):
print(f'cavewallets {cave_id=} {cave=}')
manywallets = Wallet.objects.filter(survexblock__survexfile__cave=cave)
return render(request, 'cavewallets.html', { 'manywallets':manywallets, 'settings': settings })
manywallets = set(Wallet.objects.filter(survexblock__survexfile__cave=cave))
return render(request, 'cavewallets.html', { 'manywallets':manywallets, 'settings': settings, 'cave': cave})

View File

@ -1,16 +1,15 @@
{% extends "base.html" %}
{% block title %}All Survey scans folders (wallets){% endblock %}
{% block title %}One Cave Survey scans folders (wallets){% endblock %}
{% block content %}
<h3>Survey scans folders (wallets) for a specific cave</h3>
<h3>Survey scans folders (wallets) for <a href="/{{cave.url}}">{{cave}}</a></h3>
<p>Each wallet contains the scanned original in-cave survey notes and sketches of
plans and elevations. It also contains scans of centre-line survex output on which
hand-drawn passage sections are drawn. These hand-drawn passages will eventually be
traced to produce Tunnel or Therion drawings and eventually the final complete cave survey.
<table width=95%>
<tr><th>Scans folder</th><th>Files</th><th>Survex blocks</th><th>Cave</th></tr>
{% for scanswallet in manywallets %}