2009-05-13 05:15:59 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% load wiki_markup %}
|
|
|
|
|
|
|
|
{% block title %}Logbook {{logbookentry.id}}{% endblock %}
|
2009-05-13 05:56:56 +01:00
|
|
|
{% block editLink %}<a href={{logbookentry.get_admin_url}}>Edit logbook entry {{logbookentry|wiki_to_html_short}}</a>{% endblock %}
|
2009-05-13 05:15:59 +01:00
|
|
|
{% block content %}
|
2009-05-13 05:52:15 +01:00
|
|
|
|
2009-05-13 05:35:59 +01:00
|
|
|
<h2>{{logbookentry.title|safe}}</h2>
|
|
|
|
|
2009-07-03 00:50:56 +01:00
|
|
|
<div id="related">
|
2009-05-13 05:52:15 +01:00
|
|
|
<p><a href="{{ logbookentry.expedition.get_absolute_url }}">{{logbookentry.expedition.name}}</a></p>
|
2009-05-13 05:46:12 +01:00
|
|
|
|
|
|
|
{% if logbookentry.cave %}
|
2009-05-13 05:52:15 +01:00
|
|
|
<p>place: <a href="{{ logbookentry.cave.get_absolute_url }}">{{logbookentry.place}}</p>
|
2009-05-13 05:46:12 +01:00
|
|
|
{% else %}
|
|
|
|
<p>{{logbookentry.place}}</p>
|
|
|
|
{% endif %}
|
2009-05-13 05:35:59 +01:00
|
|
|
|
2009-05-13 05:38:18 +01:00
|
|
|
<p>
|
2009-05-13 05:49:05 +01:00
|
|
|
{% if logbookentry.get_previous_by_date %}
|
2009-05-13 05:52:15 +01:00
|
|
|
<a href="{{ logbookentry.get_previous_by_date.get_absolute_url }}">{{logbookentry.get_previous_by_date.date}}</a>
|
2009-05-13 05:38:18 +01:00
|
|
|
{% endif %}
|
2009-05-13 05:49:05 +01:00
|
|
|
{% if logbookentry.get_next_by_date %}
|
2009-05-13 05:52:15 +01:00
|
|
|
<a href="{{ logbookentry.get_next_by_date.get_absolute_url }}">{{logbookentry.get_next_by_date.date}}</a>
|
2009-05-13 05:38:18 +01:00
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
|
2009-05-13 05:35:59 +01:00
|
|
|
<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>
|
2009-09-11 23:56:47 +01:00
|
|
|
{% ifequal persontrip.personexpedition logbookentry.author %}
|
2009-05-13 05:35:59 +01:00
|
|
|
<td class="author">
|
|
|
|
{% else %}
|
|
|
|
<td>
|
|
|
|
{% endifequal %}
|
2009-09-11 23:56:47 +01:00
|
|
|
<a href="{{ persontrip.personexpedition.get_absolute_url }}">{{persontrip.personexpedition.person}}</a>
|
2009-05-13 05:35:59 +01:00
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
{% if persontrip.timeunderground %}
|
|
|
|
- T/U {{persontrip.timeunderground}}</p>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
2009-07-27 13:42:54 +01:00
|
|
|
{% if persontrip.persontrip_prev %}
|
2011-05-01 19:32:41 +01:00
|
|
|
<a href="{{ persontrip.persontrip_prev.logbook_entry.get_absolute_url }}">{{persontrip.persontrip_prev.logbook_entry.date}}</a>
|
2009-05-13 05:35:59 +01:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td>
|
2009-07-27 13:42:54 +01:00
|
|
|
{% if persontrip.persontrip_next %}
|
2011-05-01 19:32:41 +01:00
|
|
|
<a href="{{ persontrip.persontrip_next.logbook_entry.get_absolute_url }}">{{persontrip.persontrip_next.logbook_entry.date}}</a>
|
2009-05-13 05:35:59 +01:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
2009-07-27 13:42:54 +01:00
|
|
|
|
2009-05-13 05:35:59 +01:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
2009-05-13 06:09:55 +01:00
|
|
|
{% if newQMlink %}
|
2009-05-13 06:08:04 +01:00
|
|
|
<a href="{{newQMlink}}">Add QM found on this trip</a>
|
2009-05-13 06:09:55 +01:00
|
|
|
{% endif %}
|
2009-05-13 05:35:59 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="col1">
|
|
|
|
<div class="logbookentry">
|
|
|
|
<b>{{logbookentry.date}}</b>
|
|
|
|
{{logbookentry.text|wiki_to_html}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2011-05-01 19:32:41 +01:00
|
|
|
{% if logbookentry.filename %}<a href="{% url editlogbookentry year=logbookentry.year pdate=logbookentry.date pslug=logbookentry.slug %}">Edit</a> <a href="{% url deletelogbookentry year=logbookentry.year date=logbookentry.date slug=logbookentry.slug %}">Delete</a>{%endif%}
|
|
|
|
|
2009-05-13 05:15:59 +01:00
|
|
|
{% endblock %}
|