diff options
author | goatchurch <devnull@localhost> | 2009-07-27 13:42:54 +0100 |
---|---|---|
committer | goatchurch <devnull@localhost> | 2009-07-27 13:42:54 +0100 |
commit | 68060d6118b47c54c34004b97ef13d5200cdd401 (patch) | |
tree | d557d0213a729237778dbf8192a2f3145795d890 /templates/personexpedition.html | |
parent | ddbdc73e7eef3f63e8cd32172f6559759b896388 (diff) | |
download | troggle-68060d6118b47c54c34004b97ef13d5200cdd401.tar.gz troggle-68060d6118b47c54c34004b97ef13d5200cdd401.tar.bz2 troggle-68060d6118b47c54c34004b97ef13d5200cdd401.zip |
[svn] some file reading things
Diffstat (limited to 'templates/personexpedition.html')
-rw-r--r-- | templates/personexpedition.html | 43 |
1 files changed, 15 insertions, 28 deletions
diff --git a/templates/personexpedition.html b/templates/personexpedition.html index a0245aa..cd9cd97 100644 --- a/templates/personexpedition.html +++ b/templates/personexpedition.html @@ -27,37 +27,24 @@ <h3>Table of all trips and surveys aligned by date</h3>
<div>
<table class="survexcontibutions">
-<tr><th>Date</th><th>Trips</th><th>Surveys</th></tr>
-{% for persondate in personexpedition.GetPersonChronology %}
+<tr><th>Date</th><th colspan="2">Trips</th><th colspan="2">Surveys</th></tr>
+{% for persondate in personchronology %}
<tr>
<td class="date">{{persondate.0}}</td>
- <td>
- <table>
- {% for persontrip in persondate.1.persontrips %}
- <tr>
- <td class="trip"><a href="{{ persontrip.logbook_entry.get_absolute_url }}">{{persontrip.logbook_entry.title|safe}}</a></td>
-
- {% if persontrip.logbook_entry.cave %}
- <td><a href="{{ persontrip.logbook_entry.cave.get_absolute_url }}">{{persontrip.place}}</a></td>
- {% else %}
- <td>{{persontrip.place}}</td>
- {% endif %}
- </tr>
- {% endfor %}
- </table>
- </td>
-
- <td>
- <table>
- {% for personsurvexroles in persondate.1.personroles.items %}
- <tr>
- <td class="survexblock"><a href="{% url survexblock personsurvexroles.0 %}">{{personsurvexroles.0}}</a></td>
- <td class="roles">{{personsurvexroles.1}}</td>
- </tr>
- {% endfor %}
- </table>
- </td>
+ {% if persondate.1 %}
+ <td class="trip"><a href="{{ persondate.1.logbook_entry.get_absolute_url }}">{{persondate.1.logbook_entry.title|safe}}</a></td>
+ <td><a href="{{ persondate.1.logbook_entry.cave.get_absolute_url }}">{{persondate.1.place|safe}}</a></td>
+ {% else %}
+ <td colspan="2"> </td>
+ {% endif %}
+
+ {% if persondate.2 %}
+ <td class="survexblock"><a href="{% url survexblock persondate.2.0 %}">{{persondate.2.0}}</a></td>
+ <td class="roles">{{persondate.2.1}}</td>
+ {% else %}
+ <td colspan="2"> </td>
+ {% endif %}
</tr>
{% endfor %}
|