aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAlban Gruin2017-10-31 13:10:18 +0100
committerAlban Gruin2017-10-31 13:10:18 +0100
commit3f610831227e7def4b74651747d5625c9a009311 (patch)
tree55b5deea6f47e6e165aae6580ee0c7ac32a182ec /templates
parent55ad46fe32ce8122d884dda4eb498e20e39622ad (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.html6
-rw-r--r--templates/index.html3
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 }} &ndash; 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 &ndash; Alban Gruin &ndash; <a href="{% url "django.contrib.flatpages.views.flatpage" url="contact/" %}">contacter</a> &ndash; <a href="{% url "django.contrib.flatpages.views.flatpage" url="a-propos/" %}">à propos</a><br />
+ <p>(c) 2017 &ndash; Alban Gruin &ndash; <a href="{% url "django.contrib.flatpages.views.flatpage" url="contact/" %}">contacter</a> &ndash;
+ celcatsanitizer {{ celcatsanitizer_version }} &ndash; <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>