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') 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.title }}

+

{{ flatpage.content }}

+{% endblock %} -- cgit v1.2.1 From b68c59c72be3a8e3d3201dca1941879508afcb3b Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Mon, 30 Oct 2017 18:29:21 +0100 Subject: Liens vers les flatpages --- templates/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/index.html b/templates/index.html index 005fd5b..abaf5f1 100644 --- a/templates/index.html +++ b/templates/index.html @@ -24,7 +24,7 @@ {% 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/contact.html | 9 --------- templates/flatpages/default.html | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) delete mode 100644 templates/contact.html (limited to 'templates') diff --git a/templates/contact.html b/templates/contact.html deleted file mode 100644 index 1359a16..0000000 --- a/templates/contact.html +++ /dev/null @@ -1,9 +0,0 @@ -{% extends "index.html" %} -{% load email %} - -{% block title %}Contacter – {% endblock %} - -{% block body %} -

Contacter

-

Pour contacter l’administrateur du service, envoyez un mail à l’adresse suivante :
{{ email|format_email }}.

-{% endblock %} 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.title }}

-

{{ 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 ++++++ templates/index.html | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 templates/flatpages/about.html (limited to 'templates') 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 %} +

{{ flatpage.title }} – celcatsanitizer {{ celcatsanitizer_version }}

+ {{ 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 %} -- cgit v1.2.1 From 70ad14a54a23744d10054a71d61a5be6df72780d Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Tue, 31 Oct 2017 13:26:58 +0100 Subject: Suppression d’une ligne inutile --- templates/index.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/index.html b/templates/index.html index 1ea6e53..71665bc 100644 --- a/templates/index.html +++ b/templates/index.html @@ -24,8 +24,7 @@ {% endblock %} -- cgit v1.2.1