week: Add week number to the DisplayTruth

In order to have all the relevant information for displaying a truth everywhere, add
its week number.
Fetch it during the week rendering and use it for the link back.
This commit is contained in:
trotFunky 2024-07-29 22:53:36 +01:00
parent 4e1e9facc6
commit 072889173f
3 changed files with 3 additions and 2 deletions

View file

@ -5,7 +5,7 @@
{%- endif -%}
<div class="individual_truth">
<a href="#{{ truth.number }}"><h3 id="{{ truth.number }}">Vérité {{ truth.number }}</h3></a>
<a href="/{{ truth.week }}/#{{ truth.number }}"><h3 id="{{ truth.number }}">Vérité {{ truth.number }}</h3></a>
<p>{{ truth.rendered_text | safe }}</p>
{% if user.logged_in %}
<hr/>