templates: Move week-related includes to a folder

In preparation to adding a new page, move the week-related included files in a specific
sub-folder.
Change includes accordingly.
This commit is contained in:
trotFunky 2024-07-27 22:41:06 +01:00
parent 36b2e61e26
commit afdac98dea
4 changed files with 4 additions and 4 deletions

View file

@ -102,9 +102,9 @@
{% set truth_index = truth.number - index_delta %} {% set truth_index = truth.number - index_delta %}
{% if user.is_admin == true %} {% if user.is_admin == true %}
{% include "editable_truth" %} {% include "weeks/editable_truth" %}
{% else %} {% else %}
{% include "truth" %} {% include "weeks/truth" %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
@ -125,7 +125,7 @@
<div class="individual_truth"> <div class="individual_truth">
<h3>Nouvelle vérité</h3> <h3>Nouvelle vérité</h3>
<form action="/{{ week_data.number }}/new_truth" method="POST"> <form action="/{{ week_data.number }}/new_truth" method="POST">
{% include "truth_editor" %} {% include "weeks/truth_editor" %}
</form> </form>
</div> </div>
{% endif %} {% endif %}

View file

@ -3,6 +3,6 @@
<p>{{ truth.rendered_text | safe }}</p> <p>{{ truth.rendered_text | safe }}</p>
<hr/> <hr/>
<form action="/{{ week_data.number }}/edit/{{ truth.number }}" method="POST"> <form action="/{{ week_data.number }}/edit/{{ truth.number }}" method="POST">
{% include "truth_editor" %} {% include "weeks/truth_editor" %}
</form> </form>
</div> </div>