From ac128705f6664657213feb7c61daefb3c1ff0228 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Mon, 4 Sep 2023 19:30:29 +0300 Subject: [PATCH] Keep nicknames, not full names, in lbes --- templates/logbook2005style.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/logbook2005style.html b/templates/logbook2005style.html index fb64a1e..9900aed 100644 --- a/templates/logbook2005style.html +++ b/templates/logbook2005style.html @@ -22,7 +22,7 @@ See troggle/code/views/other.py and core.models/logbooks.py writelogbook(year, f
{{logbook_entry.date|date:'Y-m-d'}}
-
{% for personlogentry in logbook_entry.personlogentry_set.all %}{% if personlogentry.is_logbook_entry_author %}{{personlogentry.personexpedition.person|safe}}{% else %}{{ personlogentry.personexpedition.person|safe }}{% endif %}, {% endfor %}{% if logbook_entry.other_people %}, {{logbook_entry.other_people}}{% endif %}
+
{% for personlogentry in logbook_entry.personlogentry_set.all %}{% if personlogentry.is_logbook_entry_author %}{% if personlogentry.nickname_used %}{{personlogentry.nickname_used|safe}}{% else %}{{personlogentry.personexpedition.person|safe}}{% endif %}{% else %}{% if personlogentry.nickname_used %}{{personlogentry.nickname_used|safe}}{% else %}{{personlogentry.personexpedition.person|safe}}{% endif %}{% endif %}, {% endfor %}{% if logbook_entry.other_people %}, {{logbook_entry.other_people}}{% endif %}
{{logbook_entry.title|safe}}
{{logbook_entry.text|safe}}
T/U: {{logbook_entry.time_underground|safe}} hours