diff options
Diffstat (limited to 'templates/logbookentry.html')
-rw-r--r-- | templates/logbookentry.html | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/templates/logbookentry.html b/templates/logbookentry.html index 9e632a4..578786f 100644 --- a/templates/logbookentry.html +++ b/templates/logbookentry.html @@ -44,15 +44,16 @@ </td>
<td>
- {% if persontrip.get_previous_by_date %}
- <a href="{{ persontrip.get_persons_previous_trip.logbook_entry.get_absolute_url }}">{{persontrip.get_persons_previous_trip.date}}</a>
+ {% if persontrip.persontrip_prev %}
+ <a href="{{ persontrip.persontrip_prev.logbook_entry.get_absolute_url }}">{{persontrip.persontrip_prev.date}}</a>
{% endif %}
</td>
<td>
- {% if persontrip.get_persons_next_trip %}
- <a href="{{ persontrip.get_persons_next_trip.logbook_entry.get_absolute_url }}">{{persontrip.get_persons_next_trip.date}}</a>
+ {% if persontrip.persontrip_next %}
+ <a href="{{ persontrip.persontrip_next.logbook_entry.get_absolute_url }}">{{persontrip.persontrip_next.date}}</a>
{% endif %}
</td>
+
</tr>
{% endfor %}
</table>
|