2009-05-13 05:52:15 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% load wiki_markup %}
|
2009-07-03 00:50:56 +01:00
|
|
|
{% load link %}
|
2009-05-13 05:52:15 +01:00
|
|
|
|
|
|
|
{% block title %}Expedition {{expedition.name}}{% endblock %}
|
2009-05-13 05:56:56 +01:00
|
|
|
{% block editLink %}<a href={{expedition.get_admin_url}}>Edit expedition {{expedition|wiki_to_html_short}}</a>{% endblock %}
|
2009-05-13 05:52:15 +01:00
|
|
|
|
2009-07-03 00:50:56 +01:00
|
|
|
{% block related %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2009-05-13 05:52:15 +01:00
|
|
|
|
2009-09-11 23:56:47 +01:00
|
|
|
{% if message %}
|
2009-05-13 05:52:15 +01:00
|
|
|
<p>debug message: {{message}}</p>
|
2009-09-11 23:56:47 +01:00
|
|
|
{% endif %}
|
2009-05-13 05:52:15 +01:00
|
|
|
|
2009-09-11 23:56:47 +01:00
|
|
|
<h2>{{expedition.name}}</h2>
|
|
|
|
|
|
|
|
<p><b>Other years:</b>
|
|
|
|
{% for otherexpedition in expeditions %}
|
|
|
|
{% ifequal otherexpedition expedition %}
|
|
|
|
| <b>{{otherexpedition.year}}</b>
|
|
|
|
{% else %}
|
|
|
|
| <a href="{{otherexpedition.get_absolute_url}}">{{ otherexpedition.year }}</a>
|
|
|
|
{% endifequal %}
|
|
|
|
{% endfor %}
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<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 or August), with a "T" for a logbook entry, and
|
|
|
|
an "S" for a survey trip. The colours are the same for people on the same trip.</p>
|
|
|
|
|
|
|
|
<table class="expeditionpersonlist">
|
|
|
|
<tr>
|
|
|
|
<th>Caver</th>
|
|
|
|
{% for expeditionday in expedition.expeditionday_set.all %}
|
|
|
|
<th>
|
|
|
|
{{expeditionday.date.day}}
|
|
|
|
</th>
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% for personexpeditionday in personexpeditiondays %}
|
2009-05-13 05:52:15 +01:00
|
|
|
<tr>
|
2009-09-11 23:56:47 +01:00
|
|
|
<td><a href="{{ personexpeditionday.personexpedition.get_absolute_url }}">{{personexpeditionday.personexpedition.person}}</a></td>
|
|
|
|
{% for persondayactivities in personexpeditionday.personrow %}
|
|
|
|
|
|
|
|
{% if persondayactivities.persontrips or persondayactivities.survexblocks %}
|
|
|
|
<td class="persondayactivity">
|
|
|
|
{% for persontrip in persondayactivities.persontrips %}
|
|
|
|
<a href="{{persontrip.logbook_entry.get_absolute_url}}" class="dayindexlog-{{persontrip.logbook_entry.DayIndex}}">T</a>
|
|
|
|
{% endfor %}
|
|
|
|
<br/>
|
|
|
|
{% for survexblock in persondayactivities.survexblocks %}
|
|
|
|
<a href="{% url svx survexblock.survexfile.path %}" class="dayindexsurvex-{{survexblock.DayIndex}}">S</a>
|
|
|
|
{% endfor %}
|
|
|
|
</td>
|
|
|
|
{% else %}
|
|
|
|
<td class="persondayactivity-nothing">
|
|
|
|
</td>
|
|
|
|
{% endif %}
|
2009-05-13 05:52:15 +01:00
|
|
|
|
2009-09-11 23:56:47 +01:00
|
|
|
{% endfor %}
|
2009-05-13 05:52:15 +01:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|
2009-09-11 23:56:47 +01:00
|
|
|
<form action="" method="GET"><input type="submit" name="reload" value="Reload"></form>
|
|
|
|
|
|
|
|
<h3>Logbooks and survey trips per day</h3>
|
|
|
|
<table class="expeditionlogbooks">
|
|
|
|
<tr><th>Date</th><th>Logged trips</th><th>Surveys</th></tr>
|
|
|
|
{% for expeditionday in expedition.expeditionday_set.all %}
|
|
|
|
<tr>
|
|
|
|
<td>{{expeditionday.date}}</td>
|
|
|
|
<td>
|
|
|
|
{% for logbookentry in expeditionday.logbookentry_set.all %}
|
|
|
|
<a href="{{ logbookentry.get_absolute_url }}">{{logbookentry.title|safe}}</a><br/>
|
|
|
|
{% endfor %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% for survexblock in expeditionday.survexblock_set.all %}
|
|
|
|
<a href="{% url svx survexblock.survexfile.path %}">{{survexblock.name}}</a>
|
|
|
|
{% endfor %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2009-08-05 11:58:36 +01:00
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|
2009-05-13 05:52:15 +01:00
|
|
|
{% endblock %}
|