forked from expo/troggle
fix author display for logbook entry
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
</p>
|
||||
|
||||
{% if logbookentry.cave %}
|
||||
<p>place: <a href="{{ logbookentry.cave.get_absolute_url }}">{{logbookentry.place}}</p>
|
||||
<p>place: <a href="{{ logbookentry.cave.get_absolute_url }}">{{logbookentry.place|safe}}</p>
|
||||
{% else %}
|
||||
<p>{{logbookentry.place|safe}}</p>
|
||||
{% endif %}
|
||||
@@ -31,7 +31,7 @@
|
||||
<tr><th>Caver</th><th>T/U</th><th>Prev</th><th>Next</th></tr>
|
||||
{% for persontrip in logbookentry.persontrip_set.all %}
|
||||
<tr>
|
||||
{% if persontrip.personexpedition == logbookentry.author %}
|
||||
{% if persontrip.is_logbook_entry_author %}
|
||||
<td class="author">
|
||||
{% else %}
|
||||
<td>
|
||||
@@ -64,6 +64,7 @@
|
||||
<div id="col1">
|
||||
<div class="logbookentry">
|
||||
<b>{{logbookentry.date|date:"D d M Y"}}</b>
|
||||
{% for persontrip in logbookentry.persontrip_set.all %}{% if persontrip.is_logbook_entry_author %}<br />{{persontrip.personexpedition.person}}{% endif %}{% endfor %}
|
||||
<p>{{logbookentry.text|safe}}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user