summaryrefslogtreecommitdiffstats
path: root/templates/personindex.html
diff options
context:
space:
mode:
authorgoatchurch <devnull@localhost>2009-08-05 11:58:36 +0100
committergoatchurch <devnull@localhost>2009-08-05 11:58:36 +0100
commite4496e4cd8dd7d6ea809aa2142f2d7adcbeca213 (patch)
treec7603f32f60415e0b36bacbf2cc77faafd3ca432 /templates/personindex.html
parent60dcb82ef6ca4faf4b7e2e5cb2d407961af5ea3f (diff)
downloadtroggle-e4496e4cd8dd7d6ea809aa2142f2d7adcbeca213.tar.gz
troggle-e4496e4cd8dd7d6ea809aa2142f2d7adcbeca213.tar.bz2
troggle-e4496e4cd8dd7d6ea809aa2142f2d7adcbeca213.zip
[svn] latest hacking for various statistics
Diffstat (limited to 'templates/personindex.html')
-rw-r--r--templates/personindex.html11
1 files changed, 6 insertions, 5 deletions
diff --git a/templates/personindex.html b/templates/personindex.html
index ea97f43..8daffc0 100644
--- a/templates/personindex.html
+++ b/templates/personindex.html
@@ -11,8 +11,8 @@
{% for person in notablepersons %}
<tr>
<td><a href="{{ person.get_absolute_url }}">{{person|wiki_to_html_short}}</a></td>
- <td><a href="{{ person.personexpedition_set.all.0.get_absolute_url }}">{{ person.personexpedition_set.all.0.expedition.year }}</a></td>
- <td><a href="{{ person.personexpedition_set.latest.get_absolute_url }}">{{ person.personexpedition_set.latest.expedition.year }}</a></td>
+ <td><a href="{{ person.first.get_absolute_url }}">{{ person.first.expedition.year }}</a></td>
+ <td><a href="{{ person.last.get_absolute_url }}">{{ person.last.expedition.year }}</a></td>
<td>{{person.notability}}</td>
</tr>
{% endfor %}
@@ -26,12 +26,13 @@
<td>
<table>
-<tr><th>Person</th><th>First</th><th>Last</th></tr>
+<tr><th>Person</th><th>First</th><th>Last</th><th>Surveyed length</th></tr>
{% for person in persons %}
<tr>
<td><a href="{{ person.get_absolute_url }}">{{person|wiki_to_html_short}}</a></td>
- <td><a href="{{ person.personexpedition_set.all.0.get_absolute_url }}">{{person.personexpedition_set.all.0.expedition.year}}</a></td>
- <td><a href="{{ person.personexpedition_set.latest.get_absolute_url }}">{{person.personexpedition_set.latest.expedition.year}}</a></td>
+ <td><a href="{{ person.first.get_absolute_url }}">{{person.first.expedition.year}}</a></td>
+ <td><a href="{{ person.last.get_absolute_url }}">{{person.last.expedition.year}}</a></td>
+ <td>{{ person.surveyedleglength }}</td>
</tr>
{% endfor %}
</table>