{% 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.persontrip_prev %} {{persontrip.persontrip_prev.date}} {% endif %} {% if persontrip.persontrip_next %} {{persontrip.persontrip_next.date}} {% endif %}
{{logbookentry.date}} {{logbookentry.text|wiki_to_html}}
{% endblock %}