Fix scanned walletindex pages

This commit is contained in:
Philip Sargent
2022-03-18 12:26:32 +00:00
parent af7fc8f243
commit 8b889ade5f
5 changed files with 50 additions and 2 deletions

View File

@@ -53,6 +53,8 @@
<a href="/expofiles/surveyscans/{{year}}/{{wallet|urlencode}}/walletindex.html">Wallet status page</a>
<br />
<a href="/expofiles/surveyscans/{{year}}/walletindex.html">Wallet index for this year</a>
<br />
<a href="/expedition/{{year}}">Logbook entries, Survex files for this year</a>
</em>
</div>

View File

@@ -1,3 +1,4 @@
<!-- wallet_old.html - this text visible because this template has been included -->
{% extends "base.html" %}
{% block title %}Survey Scans Wallet {% endblock %}
{% block content %}

View File

@@ -0,0 +1,29 @@
<!-- walletindex.html - this text visible because this template has been included -->
{% extends "base.html" %}
{% block title %}Wallet Scanned Index Pages{% endblock %}
{% block content %}
<h3>Wallet Index Scanned Pages: {{wallet.walletname|slice:'0:4'}}</h3>
<table>
{% for singlescan in wallet.singlescan_set.all %}
<tr>
<td class="singlescan"><a href="{{singlescan.get_absolute_url}}">{{singlescan.name}}</a></td>
<td>
{% for survexblock in singlescan.survexblock_set.all %}
{{survexblock}}
{% endfor %}
</td>
</tr>
{% endfor %}
</table>
<p><em>
<a href="/expofiles/surveyscans/{{wallet.walletname|slice:'0:4'}}/walletindex.html">Wallet index for this year</a> {{wallet.walletname|slice:'0:4'}}
<br />
<a href="/expedition/{{wallet.walletname|slice:'0:4'}}">Expedition page for this year </a> {{wallet.walletname|slice:'0:4'}}
<br />
<a href="/scanupload/{{wallet.walletname|slice:'0:4'}}:01">First wallet for this year </a> {{wallet.walletname|slice:'0:4'}}
</em>
{% endblock %}