From 03bf0f33ac47b2f5597c39b10d9f26d7fb893d79 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Sun, 29 Oct 2017 22:07:12 +0100 Subject: Création d’une template pour les flatpages Django --- templates/flatpages/default.html | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 templates/flatpages/default.html (limited to 'templates/flatpages') diff --git a/templates/flatpages/default.html b/templates/flatpages/default.html new file mode 100644 index 0000000..42f67db --- /dev/null +++ b/templates/flatpages/default.html @@ -0,0 +1,8 @@ +{% extends "index.html" %} + +{% block title %}{{ flatpage.title }} – {% endblock %} + +{% block body %} +
{{ flatpage.content }}
+{% endblock %} -- cgit v1.2.1 From 55ad46fe32ce8122d884dda4eb498e20e39622ad Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Tue, 31 Oct 2017 12:38:34 +0100 Subject: Suppression de l’ancienne page de contact --- templates/flatpages/default.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/flatpages') diff --git a/templates/flatpages/default.html b/templates/flatpages/default.html index 42f67db..913cda9 100644 --- a/templates/flatpages/default.html +++ b/templates/flatpages/default.html @@ -4,5 +4,5 @@ {% block body %}{{ flatpage.content }}
+ {{ flatpage.content }} {% endblock %} -- cgit v1.2.1 From 3f610831227e7def4b74651747d5625c9a009311 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Tue, 31 Oct 2017 13:10:18 +0100 Subject: 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. --- templates/flatpages/about.html | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 templates/flatpages/about.html (limited to 'templates/flatpages') 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 %} +