summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/logbook2005style.html12
1 files changed, 7 insertions, 5 deletions
diff --git a/templates/logbook2005style.html b/templates/logbook2005style.html
index ce5f5bb..872ee4c 100644
--- a/templates/logbook2005style.html
+++ b/templates/logbook2005style.html
@@ -9,6 +9,10 @@
</head>
<!-- Exported by troggle because one entry has been edited, and we reconstruct the whole thing.
+As of 10 Dec.2024 the list of participants in every trip is re-ordered to be in alphabetic
+order of name (or nickname, if used) whenever any entry is edited and the logbook.html file
+re-written. This is prevent spurious re-orderings and spurious git commit lines which obscure real changes.
+
Sorry about all the crap that surrounds the image tags which has been imported along with the content
when UK Caving blogs have been parsed.
@@ -16,16 +20,14 @@ Exported on {% now 'Y-m-d H:m' %} using either the control panel webpage or when
See troggle/code/views/other.py and core.models/logbooks.py writelogbook(year, filename)
-->
<body>
-{%for logbook_entry in logbook_entries%}
-<hr />
+{%for logbook_entry in logbook_entries%}<hr />
<div class="tripdate" id="{{logbook_entry.slug}}">{{logbook_entry.date|date:'Y-m-d'}}</div>
-<div class="trippeople">{% for personlogentry in logbook_entry.personlogentry_set.all %}{% if personlogentry.is_logbook_entry_author %}<u>{% if personlogentry.nickname_used %}{{personlogentry.nickname_used|safe}}{% else %}{{personlogentry.personexpedition.person|safe}}{% endif %}</u>,{% endif %}{% endfor %}{% for personlogentry in logbook_entry.personlogentry_set.all %}{% if personlogentry.is_logbook_entry_author %}{% 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 %}</div>
+<div class="trippeople">{{logbook_entry.get_participants|safe}}</div>
<div class="triptitle">{{logbook_entry.title|safe}}</div>
{{logbook_entry.text|safe}}
<div class="timeug">T/U: {{logbook_entry.time_underground|safe}} hours</div>
<div class="editentry"><br /><a href="/logbookedit/{{logbook_entry.slug}}">Edit this entry</a><br /></div>
-{% endfor %}
-<hr />
+{% endfor %}<hr />
</body>
</html>