summaryrefslogtreecommitdiffstats
path: root/templates/logbookentry.html
diff options
context:
space:
mode:
authorsubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-13 05:38:18 +0100
committersubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-13 05:38:18 +0100
commit0f5109cb0988d76c5b7d3037acca0ad8ac07f0dd (patch)
treec272078cde2262740c74fcfdf40dea9073c87f27 /templates/logbookentry.html
parentda154a736b2bd9c690f0e7bcbb9c06c7cb1859e2 (diff)
downloadtroggle-0f5109cb0988d76c5b7d3037acca0ad8ac07f0dd.tar.gz
troggle-0f5109cb0988d76c5b7d3037acca0ad8ac07f0dd.tar.bz2
troggle-0f5109cb0988d76c5b7d3037acca0ad8ac07f0dd.zip
[svn] new person expedition
Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8189 by julian @ 1/18/2009 7:50 PM
Diffstat (limited to 'templates/logbookentry.html')
-rw-r--r--templates/logbookentry.html14
1 files changed, 12 insertions, 2 deletions
diff --git a/templates/logbookentry.html b/templates/logbookentry.html
index 4a0dd61..6ed9b32 100644
--- a/templates/logbookentry.html
+++ b/templates/logbookentry.html
@@ -10,12 +10,22 @@
<p><a href="{% url expedition logbookentry.expedition.year %}">{{logbookentry.expedition.name}}</a></p>
<p>place: {{logbookentry.place}}</p>
+<p>
+ {% if logbookentry.logbookentry_prev %}
+ <a href="{% url logbookentry logbookentry.logbookentry_prev.href %}">{{logbookentry.logbookentry_prev.date}}</a>
+ {% endif %}
+ {% if logbookentry.logbookentry_next %}
+ <a href="{% url logbookentry logbookentry.logbookentry_next.href %}">{{logbookentry.logbookentry_next.date}}</a>
+ {% endif %}
+</p>
+
<table class="cavers">
<tr><th>Caver</th><th>T/U</th><th>Prev</th><th>Next</th></tr>
{% for persontrip in logbookentry.persontrip_set.all %}
<tr>
{% ifequal persontrip.person_expedition logbookentry.author %}
<td class="author">
+{{persontrip.person_expedition.person.personrole_set.count}}
{% else %}
<td>
{% endifequal %}
@@ -30,12 +40,12 @@
<td>
{% if persontrip.persontrip_prev %}
- <a href="{% url logbookentry persontrip.persontrip_prev.logbook_entry.id %}">{{persontrip.persontrip_prev.date}}</a>
+ <a href="{% url logbookentry persontrip.persontrip_prev.logbook_entry.href %}">{{persontrip.persontrip_prev.date}}</a>
{% endif %}
</td>
<td>
{% if persontrip.persontrip_next %}
- <a href="{% url logbookentry persontrip.persontrip_next.logbook_entry.id %}">{{persontrip.persontrip_next.date}}</a>
+ <a href="{% url logbookentry persontrip.persontrip_next.logbook_entry.href %}">{{persontrip.persontrip_next.date}}</a>
{% endif %}
</td>
</tr>