2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-02-08 10:38:25 +00:00

fix author display for logbook entry

This commit is contained in:
2022-12-18 21:20:30 +00:00
parent 8ce86aabee
commit f1d5df9933
2 changed files with 8 additions and 59 deletions

View File

@@ -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>