aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/contact.html9
-rw-r--r--templates/flatpages/about.html6
-rw-r--r--templates/flatpages/default.html8
-rw-r--r--templates/index.html2
4 files changed, 15 insertions, 10 deletions
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 %}
- <h3>Contacter</h3>
- <p>Pour contacter l’administrateur du service, envoyez un mail à l’adresse suivante :<br/>{{ email|format_email }}.</p>
-{% endblock %}
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/flatpages/default.html b/templates/flatpages/default.html
new file mode 100644
index 0000000..913cda9
--- /dev/null
+++ b/templates/flatpages/default.html
@@ -0,0 +1,8 @@
+{% extends "index.html" %}
+
+{% block title %}{{ flatpage.title }} &ndash; {% endblock %}
+
+{% block body %}
+ <h3>{{ flatpage.title }}</h3>
+ {{ flatpage.content }}
+{% endblock %}
diff --git a/templates/index.html b/templates/index.html
index 005fd5b..71665bc 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -24,7 +24,7 @@
{% endblock %}
</div>
<footer>
- <p>(c) 2017 &ndash; Alban Gruin &ndash; <a href="{% url "contact" %}">contacter</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>