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:
parent
4e1e9facc6
commit
072889173f
3 changed files with 3 additions and 2 deletions
|
@ -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/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue