From afdac98dead48d260538d27409ff8e0515545d6c Mon Sep 17 00:00:00 2001 From: trotFunky Date: Sat, 27 Jul 2024 22:41:06 +0100 Subject: [PATCH] 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. --- templates/index.html.tera | 6 +++--- templates/{ => weeks}/editable_truth.tera | 2 +- templates/{ => weeks}/truth.html.tera | 0 templates/{ => weeks}/truth_editor.html.tera | 0 4 files changed, 4 insertions(+), 4 deletions(-) rename templates/{ => weeks}/editable_truth.tera (84%) rename templates/{ => weeks}/truth.html.tera (100%) rename templates/{ => weeks}/truth_editor.html.tera (100%) diff --git a/templates/index.html.tera b/templates/index.html.tera index ff9a273..2e7a831 100644 --- a/templates/index.html.tera +++ b/templates/index.html.tera @@ -102,9 +102,9 @@ {% set truth_index = truth.number - index_delta %} {% if user.is_admin == true %} - {% include "editable_truth" %} + {% include "weeks/editable_truth" %} {% else %} - {% include "truth" %} + {% include "weeks/truth" %} {% endif %} {% endfor %} @@ -125,7 +125,7 @@

Nouvelle vérité

- {% include "truth_editor" %} + {% include "weeks/truth_editor" %}
{% endif %} diff --git a/templates/editable_truth.tera b/templates/weeks/editable_truth.tera similarity index 84% rename from templates/editable_truth.tera rename to templates/weeks/editable_truth.tera index 22d3470..501302a 100644 --- a/templates/editable_truth.tera +++ b/templates/weeks/editable_truth.tera @@ -3,6 +3,6 @@

{{ truth.rendered_text | safe }}


- {% include "truth_editor" %} + {% include "weeks/truth_editor" %}
diff --git a/templates/truth.html.tera b/templates/weeks/truth.html.tera similarity index 100% rename from templates/truth.html.tera rename to templates/weeks/truth.html.tera diff --git a/templates/truth_editor.html.tera b/templates/weeks/truth_editor.html.tera similarity index 100% rename from templates/truth_editor.html.tera rename to templates/weeks/truth_editor.html.tera