troggle-unchained/templates/manywallets.html

50 lines
2.4 KiB
HTML
Raw Normal View History

2011-07-11 02:10:22 +01:00
{% extends "base.html" %}
2021-04-02 20:41:42 +01:00
2020-05-14 17:21:34 +01:00
{% block title %}All Survey scans folders (wallets){% endblock %}
2011-07-11 02:10:22 +01:00
{% block content %}
2020-05-14 17:21:34 +01:00
<h3>All Survey scans folders (wallets)</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.
2022-09-25 22:18:41 +01:00
<p>Cave identifiers in italics are derived from the current setting in the metdata JSON file,
otherwise they come from *ref statements in survex files as of the most recent data import.
2022-07-30 23:02:02 +01:00
<p>See also wallets
<ul>
2022-09-12 20:47:12 +01:00
<li>per year, e.g. <a href="/wallets/year/2018">2018</a>, <a href="/wallets/year/2019">2019</a>, <a href="/wallets/year/2022">2022</a>
2022-09-21 22:25:02 +01:00
<li>per cave, e.g. <a href="/cave/scans/1623-161">1623-161</a>, <a href="/cave/scans/1626-359">1626-359</a>, <a href="/cave/scans/1623-290">1623-290</a>, <a href="/cave/scans/1623-291">1623-291</a>, <a href="/cave/scans/1623-264">1623-264</a>
2022-09-12 20:47:12 +01:00
<li>per person, e.g. <a href="/wallets/person/Wookey">Wookey</a>, <a href="/wallets/person/ChrisDensham">Chris Densham</a>, <a href="/wallets/person/BeckaLawson">Becka</a>
2022-07-30 23:02:02 +01:00
</ul>
2022-07-05 12:14:03 +01:00
<!-- This should all be restructured to use .prefetch_related() and .select_related()
see https://docs.djangoproject.com/en/3.2/ref/models/querysets/#prefetch-related
-->
<table width=95%>
2021-05-01 00:19:04 +01:00
<tr><th>Scans folder</th><th>Files</th><th>Survex blocks</th><th>Cave</th></tr>
2021-04-26 19:50:03 +01:00
{% for scanswallet in manywallets %}
2011-07-11 02:10:22 +01:00
<tr>
2021-04-26 19:50:03 +01:00
<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">
2021-04-26 19:50:03 +01:00
{% for survexblock in scanswallet.survexblock_set.all %}
<a href="{% url "svx" survexblock.survexfile.path %}">{{survexblock}}</a>
2011-07-11 02:10:22 +01:00
{% endfor %}
</td>
2021-05-01 00:19:04 +01:00
<td style="padding:2px">
{% for survexblock in scanswallet.survexblock_set.all %}
{% ifchanged survexblock.survexfile.cave %}
2022-09-21 22:25:02 +01:00
<a href="/cave/scans/{{survexblock.survexfile.cave.slug}}">{{survexblock.survexfile.cave.slug}}</a>
2021-05-01 00:19:04 +01:00
{% endifchanged %}
2022-09-25 20:39:01 +01:00
{% empty %}
{% if scanswallet.cave %}
<em><a href="/cave/scans/{{scanswallet.cave}}">{{scanswallet.cave}}</a></em>
{% endif %}
2021-05-01 00:19:04 +01:00
{% endfor %}
</td>
2011-07-11 02:10:22 +01:00
</tr>
{% endfor %}
</table>
2009-09-10 22:07:31 +01:00
{% endblock %}