2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-29 05:11:52 +00:00

Inelegances fixes

This commit is contained in:
Philip Sargent 2023-09-01 19:09:57 +03:00
parent e209a9bb37
commit 9380f751b2
2 changed files with 8 additions and 3 deletions

View File

@ -23,8 +23,10 @@ See troggle/code/views/other.py and core.models/logbooks.py writelogbook(year, f
<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>{{personlogentry.personexpedition.person|safe}}</u>{% else %}{{ personlogentry.personexpedition.person|safe }}{% endif %}, {% endfor %}</div>
<div class="triptitle"><a href="/logbookedit/{{logbook_entry.slug}}">{{logbook_entry.title|safe}}</a></div>
<div class="triptitle">{{logbook_entry.title|safe}}</div>
<br />
<a href="/logbookedit/{{logbook_entry.slug}}">Edit this entry</a>
<br />
{{logbook_entry.text|safe}}
<div class="timeug">T/U: {{logbook_entry.time_underground|safe}} hours</div>
{% endfor %}

View File

@ -95,10 +95,13 @@
<hr />
{% if output %}
This is the HTML which will be put into the logbook.html, and below that is the HTML as rendered to be read as part of the full logbook.
<details><summary>
Click this triangle to see the HTML which has been put into logbook.html, and below that is the rendered logbook entry.
</summary>
<pre>
{{output}}
</pre>
</details>
<hr>
<style>
.tripdate, .trippeople {