forked from expo/troggle
wallets for just one cave
This commit is contained in:
37
templates/cavewallets.html
Normal file
37
templates/cavewallets.html
Normal file
@@ -0,0 +1,37 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}All Survey scans folders (wallets){% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h3>Survey scans folders (wallets) for a specific cave</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 %}
|
||||
<tr>
|
||||
<td style="padding:2px"><a href="{{scanswallet.get_absolute_url}}">{{scanswallet.walletname}}</a></td>
|
||||
<td align="right" style="padding:2px">{{scanswallet.singlescan_set.all|length}}</td>
|
||||
<td style="padding:2px">
|
||||
{% for survexblock in scanswallet.survexblock_set.all %}
|
||||
<a href="{% url "svx" survexblock.survexfile.path %}">{{survexblock}}</a>
|
||||
{% endfor %}
|
||||
</td>
|
||||
<td style="padding:2px">
|
||||
{% for survexblock in scanswallet.survexblock_set.all %}
|
||||
{% ifchanged survexblock.survexfile.cave %}
|
||||
<a href="/{{survexblock.survexfile.cave.url}}">/{{survexblock.survexfile.cave.slug}}</a>
|
||||
{% endifchanged %}
|
||||
|
||||
{% endfor %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
{% endblock %}
|
||||
@@ -27,7 +27,7 @@ see https://docs.djangoproject.com/en/3.2/ref/models/querysets/#prefetch-related
|
||||
<td style="padding:2px">
|
||||
{% for survexblock in scanswallet.survexblock_set.all %}
|
||||
{% ifchanged survexblock.survexfile.cave %}
|
||||
<a href="/{{survexblock.survexfile.cave.url}}">/{{survexblock.survexfile.cave.slug}}</a>
|
||||
<a href="/cave/scans/{{survexblock.survexfile.cave.slug}}">/{{survexblock.survexfile.cave.slug}}</a>
|
||||
{% endifchanged %}
|
||||
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user