2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-28 10:02:10 +00:00
troggle/templates/expedition.html

96 lines
3.4 KiB
HTML
Raw Normal View History

2011-07-11 02:10:22 +01:00
{% extends "base.html" %}
{% block title %}Expedition {{expedition.name}}{% endblock %}
{% block related %}
{% endblock %}
{% block content %}
2022-10-19 12:00:08 +01:00
<!-- templates/expedition.html - this text visible because this template has been included -->
2011-07-11 02:10:22 +01:00
<h2>{{expedition.name}}</h2>
<p><b>Other years:</b>
{% for otherexpedition in expeditions %}
{% if otherexpedition == expedition %}
2011-07-11 02:10:22 +01:00
| <b>{{otherexpedition.year}}</b>
{% else %}
| <a href="{{otherexpedition.get_absolute_url}}">{{ otherexpedition.year }}</a>
{% endif %}
2011-07-11 02:10:22 +01:00
{% endfor %}
</p>
2022-12-07 18:22:09 +00:00
<p>See also the
<ul>
<li> <a href="/years/{{expedition.year}}/">documentation index</a> for this Expo
<li> <a href="/wallets/year/{{expedition.year}}">wallet completion status</a> for this Expo
<li> <a href="/years/{{expedition.year}}/{{expedition.logbookfile}}">full logbook</a> for this Expo
{% if logged_in %}
2021-04-10 02:12:13 +01:00
<p>Reparse and reload this year's logbook by clicking here: <a href="/expedition/{{expedition.year}}?reload">RELOAD</a>
{% endif %}
2021-04-10 02:12:13 +01:00
2011-07-11 02:10:22 +01:00
<p><b>At a single glance:</b> The table shows all expo cavers and their recorded trips.
2023-01-30 15:28:11 +00:00
The columns are the date in the month (July, August or September), Sundays in blue, with a
"<b>T</b>" for a logbook entry, and
2023-01-30 15:28:11 +00:00
an "<b>S</b>" for a survey trip. The colours of the "<b>T</b>" and "<b>S</b>" are the same for people on the same trip. </p>
<!-- Colours are set in trog3.css and there can be 10 trips a day of each type-->
2011-07-11 02:10:22 +01:00
<table class="expeditionpersonlist">
<tr>
<th>Caver</th>
2023-01-29 22:11:00 +00:00
{% for d in dates %}
2011-07-11 02:10:22 +01:00
<th>
2023-07-10 08:18:17 +01:00
{{d.day}}/{{d.month}}
2011-07-11 02:10:22 +01:00
</th>
{% endfor %}
</tr>
2023-01-30 16:42:56 +00:00
{% for personexpoday in personexpodays %}
2011-07-11 02:10:22 +01:00
<tr>
2023-01-30 16:42:56 +00:00
<td><a href="{{ personexpoday.personexpedition.get_absolute_url }}">{{personexpoday.personexpedition.person|safe}}</a></td>
{% for activities in personexpoday.personrow %}
2011-07-11 02:10:22 +01:00
2023-01-30 15:28:11 +00:00
{% if activities.personentries or activities.survexblocks %}
<td class="persondayactivity">
{% for personentry in activities.personentries %}
<a href="{{personentry.logbook_entry.get_absolute_url}}" class="dayindexlog-{{personentry.logbook_entry.DayIndex}}">T</a>
2011-07-11 02:10:22 +01:00
{% endfor %}
2023-01-30 15:28:11 +00:00
<br/>
{% for survexblock in activities.survexblocks %}
<a href="{% url "svx" survexblock.survexfile.path %}" class="dayindexsurvex-{{survexblock.DayIndex}}">S</a>
2011-07-11 02:10:22 +01:00
{% endfor %}
</td>
{% else %}
2023-01-30 15:28:11 +00:00
{% if activities.sunday %}
<td class="persondayactivity-sunday">
{% else %}
<td class="persondayactivity-nothing">
{% endif %}
</td>
2011-07-11 02:10:22 +01:00
{% endif %}
{% endfor %}
</tr>
{% endfor %}
</table>
2022-12-18 19:33:56 +00:00
<h3 id="trips"> {{expedition.name}} - Records per day</h3>
2020-07-26 03:22:37 +01:00
2011-07-11 02:10:22 +01:00
<table class="expeditionlogbooks">
2022-12-18 19:33:56 +00:00
<tr><th>Date</th><th>Logged trips and diary entries</th><th>Surveys</th><th>Wallets</th></tr>
2011-07-11 02:10:22 +01:00
{% regroup dateditems|dictsort:"date" by date as dates %}
{% for date in dates %}
<tr>
<td>{{date.grouper|date:"D d M Y"}}</td>
2011-07-11 02:10:22 +01:00
<td>{% for item in date.list %}
{% if item.isLogbookEntry %}<a href="{{ item.get_absolute_url }}">{{item.title|safe}}</a><br/>{% endif %}
{% endfor %}</td>
<td>{% for item in date.list %}
{% if item.isSurvexBlock %}<a href="{% url "svx" item.survexfile.path %}">{{item.name}}</a><br/>{% endif %}
2011-07-11 02:10:22 +01:00
{% endfor %}</td>
2021-05-01 00:18:39 +01:00
<td>{% for item in date.list %}
{% if item.isSurvexBlock %}
<a href="{{item.scanswallet.get_absolute_url}}">{{item.scanswallet.walletname}}</a><br/>
{% endif %}
{% endfor %}</td></tr>
2011-07-11 02:10:22 +01:00
{% endfor %}
</table>
2022-12-18 19:33:56 +00:00
<h3> {{expedition.name}} </h3>
2011-07-11 02:10:22 +01:00
{% endblock %}