2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-12-18 14:32:19 +00:00
troggle/templates/expedition.html

123 lines
4.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
2023-10-04 20:23:26 +01:00
<li> <a href="/aliases/{{expedition.year}}">alias names</a> for this Expo
2024-07-07 09:08:48 +01:00
<li> <a href="/years/{{expedition.year}}/{{expedition.logbookfile}}">full logbook</a> for this Expo
2024-07-14 15:01:44 +01:00
<li> <a href="/logreport/{{expedition.year}}">logbook report</a> for this Expo
2024-07-07 09:08:48 +01:00
<li> <a href="/logbookedit/">new logbook entry</a> for this Expo
2024-07-22 12:58:55 +01:00
</ul>
{% 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>
2024-07-20 17:41:30 +01:00
<th>Caver</th><th width=7>&nbsp;</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 %}
2024-07-22 12:58:55 +01:00
</tr>
2024-07-17 13:05:58 +01:00
{% for personexpoday in personexpodays|dictsort:"sortname" %}
2024-07-22 12:58:55 +01:00
2011-07-11 02:10:22 +01:00
<tr>
2024-07-20 17:41:30 +01:00
2024-07-22 12:58:55 +01:00
<td>
<a href="{{ personexpoday.personexpedition.get_absolute_url }}">{{personexpoday.personexpedition.person.fullname|safe}}</a></td>
{% if personexpoday.personexpedition.person.mug_shot %}
<!-- Such a godawful kludge I'm almost proud of it -->
<td align=right><popup><a href="{{personexpoday.personexpedition.person.mug_shot}}">&#128515;</a><img style="width:150px;
{% with c=forloop.counter %}
top:{{500|add:c|add:c|add:c|add:c|add:c|add:c|add:c|add:c|add:c|add:c|add:c|add:c|add:c|add:c|add:c|add:c|add:c|add:c|add:c|add:c|add:c}}px"
{% endwith %}
href="{{personexpoday.personexpedition.person.mug_shot}}" src="{{personexpoday.personexpedition.person.mug_shot}}"></popup></td>
2024-07-20 18:10:05 +01:00
{% else %}
{% if personexpoday.personexpedition.person.blurb %}
2024-07-22 12:58:55 +01:00
<td align=right>
<a href="{{personexpoday.personexpedition.person.get_mugshot_url}}">&#128513;</a>
</td>
{% else %}<td></td>
2024-07-20 18:10:05 +01:00
{% endif %}
{% endif %}
2024-07-22 12:58:55 +01:00
2023-01-30 16:42:56 +00:00
{% 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 %}
2024-07-22 12:58:55 +01:00
2011-07-11 02:10:22 +01:00
{% endfor %}
2024-07-22 12:58:55 +01:00
2011-07-11 02:10:22 +01:00
</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 %}