blob: e268de8620bda747f7cf47c66105e55155d5bd98 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
{% extends "base.html" %}
{% block title %}Expedition {{expedition.name}}{% endblock %}
{% block related %}
{% endblock %}
{% block content %}
<!-- templates/expedition.html - this text visible because this template has been included -->
<h2>{{expedition.name}}</h2>
<p><b>Other years:</b>
{% for otherexpedition in expeditions %}
{% if otherexpedition == expedition %}
| <b>{{otherexpedition.year}}</b>
{% else %}
<!-- speed up by removing function call in href {{otherexpedition.get_absolute_url}}-->
| <a href="/expedition/{{ otherexpedition.year }}">{{ otherexpedition.year }}</a>
{% endif %}
{% endfor %}
</p>
<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="/aliases/{{expedition.year}}">alias names</a> for this Expo
<li> <a href="/years/{{expedition.year}}/{{expedition.logbookfile}}">full logbook</a> for this Expo
<li> <a href="/logreport/{{expedition.year}}">logbook report</a> for this Expo
<li> <a href="/logbookedit/">new logbook entry</a> for this Expo
</ul>
{% if logged_in %}
<p>Reparse and reload this year's logbook by clicking here: <a href="/expedition/{{expedition.year}}?reload">RELOAD</a>
{% endif %}
<p><b>At a single glance:</b> The table shows all expo cavers and their recorded trips.
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
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-->
<table class="expeditionpersonlist">
<tr>
<th>Caver</th><th width=7> </th>
{% for d in dates %}
<th>
{{d.day}}/{{d.month}}
</th>
{% endfor %}
</tr>
{% for personexpoday in personexpodays|dictsort:"sortname" %}
<tr>
<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}}">😃</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>
{% else %}
{% if personexpoday.personexpedition.person.blurb %}
<td align=right>
<a href="{{personexpoday.personexpedition.person.get_mugshot_url}}">😁</a>
</td>
{% else %}<td></td>
{% endif %}
{% endif %}
{% for activities in personexpoday.personrow %}
{% 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>
{% endfor %}
<br/>
{% for survexblock in activities.survexblocks %}
<a href="{% url "svx" survexblock.survexfile.path %}" class="dayindexsurvex-{{survexblock.DayIndex}}">S</a>
{% endfor %}
</td>
{% else %}
{% if activities.sunday %}
<td class="persondayactivity-sunday">
{% else %}
<td class="persondayactivity-nothing">
{% endif %}
</td>
{% endif %}
{% endfor %}
</tr>
{% endfor %}
</table>
<h3 id="trips"> {{expedition.name}} - Records per day</h3>
<table class="expeditionlogbooks">
<tr><th>Date</th><th>Logged trips and diary entries</th><th>Surveys</th><th>Wallets</th></tr>
{% regroup dateditems|dictsort:"date" by date as didates %}
{% for date in didates %}
<tr>
<td>{{date.grouper|date:"D d M Y"}}</td>
<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 %}
{% endfor %}</td>
<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>
{% endfor %}
</table>
<h3> {{expedition.name}} </h3>
{% endblock %}
|