{% extends "base.html" %} {% load wiki_markup %} {% block title %}Logbook {{logbookentry.id}}{% endblock %} {% block editLink %}Edit logbook entry {{logbookentry|wiki_to_html_short}}{% endblock %} {% block content %}

{{logbookentry.title|safe}}

{{logbookentry.expedition.name}}

{% if logbookentry.cave %}

place: {{logbookentry.place}}

{% else %}

{{logbookentry.place}}

{% endif %}

{% if logbookentry.get_previous_by_date %} {{logbookentry.get_previous_by_date.date}} {% endif %} {% if logbookentry.get_next_by_date %} {{logbookentry.get_next_by_date.date}} {% endif %}

{% for persontrip in logbookentry.persontrip_set.all %} {% ifequal persontrip.person_expedition logbookentry.author %} {% endfor %}
CaverT/UPrevNext
{% else %} {% endifequal %} {{persontrip.person_expedition.person}} {% if persontrip.timeunderground %} - T/U {{persontrip.timeunderground}}

{% endif %}
{% if persontrip.get_previous_by_date %} {{persontrip.get_persons_previous_trip.date}} {% endif %} {% if persontrip.get_persons_next_trip %} {{persontrip.get_persons_next_trip.date}} {% endif %}
Add QM found on this trip
{{logbookentry.date}} {{logbookentry.text|wiki_to_html}}
{% endblock %}