diff options
author | Alban Gruin | 2017-10-31 13:10:18 +0100 |
---|---|---|
committer | Alban Gruin | 2017-10-31 13:10:18 +0100 |
commit | 3f610831227e7def4b74651747d5625c9a009311 (patch) | |
tree | 55b5deea6f47e6e165aae6580ee0c7ac32a182ec /templates | |
parent | 55ad46fe32ce8122d884dda4eb498e20e39622ad (diff) |
Création d’une flatpage spécifique à la page « à propos »
Ajout d’un processeur de contexte pour afficher la version de CS en bas de page.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/flatpages/about.html | 6 | ||||
-rw-r--r-- | templates/index.html | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/templates/flatpages/about.html b/templates/flatpages/about.html new file mode 100644 index 0000000..3df7c53 --- /dev/null +++ b/templates/flatpages/about.html @@ -0,0 +1,6 @@ +{% extends "flatpages/default.html" %} + +{% block body %} + <h3>{{ flatpage.title }} – celcatsanitizer {{ celcatsanitizer_version }}</h3> + {{ flatpage.content }} +{% endblock %} diff --git a/templates/index.html b/templates/index.html index abaf5f1..1ea6e53 100644 --- a/templates/index.html +++ b/templates/index.html @@ -24,7 +24,8 @@ {% endblock %} </div> <footer> - <p>(c) 2017 – Alban Gruin – <a href="{% url "django.contrib.flatpages.views.flatpage" url="contact/" %}">contacter</a> – <a href="{% url "django.contrib.flatpages.views.flatpage" url="a-propos/" %}">à propos</a><br /> + <p>(c) 2017 – Alban Gruin – <a href="{% url "django.contrib.flatpages.views.flatpage" url="contact/" %}">contacter</a> – + celcatsanitizer {{ celcatsanitizer_version }} – <a href="{% url "django.contrib.flatpages.views.flatpage" url="a-propos/" %}">à propos</a><br /> Design inspiré par <a href="https://bestmotherfucking.website/">https://bestmotherfucking.website/</a></p> </footer> </body> |