From 264a0a852fb1a1d70a705c5ef24d3d39f54ed83e Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Sat, 26 Jun 2021 22:52:23 +0200 Subject: [PATCH] On utilise |richtext pour les champs RichText, ce qui permet de bien faire les rendus --- gestioncof/cms/templates/cofcms/base.html | 22 +++++++++---------- .../templates/cofcms/cof_actu_index_page.html | 22 +++++++++---------- .../cms/templates/cofcms/cof_actu_page.html | 4 ++-- .../templates/cofcms/cof_directory_page.html | 6 ++--- gestioncof/cms/templates/cofcms/cof_page.html | 6 ++--- .../cms/templates/cofcms/cof_root_page.html | 4 ++-- 6 files changed, 32 insertions(+), 32 deletions(-) diff --git a/gestioncof/cms/templates/cofcms/base.html b/gestioncof/cms/templates/cofcms/base.html index a3c78bcb..c420115f 100644 --- a/gestioncof/cms/templates/cofcms/base.html +++ b/gestioncof/cms/templates/cofcms/base.html @@ -16,7 +16,7 @@ {% block extra_head %}{% endblock %} - + @@ -32,27 +32,27 @@
{% block superaside %}{% endblock %} - +
{% block content %}{% endblock %}
diff --git a/gestioncof/cms/templates/cofcms/cof_actu_index_page.html b/gestioncof/cms/templates/cofcms/cof_actu_index_page.html index 9ddd4550..4508a66c 100644 --- a/gestioncof/cms/templates/cofcms/cof_actu_index_page.html +++ b/gestioncof/cms/templates/cofcms/cof_actu_index_page.html @@ -17,17 +17,17 @@ {% block content %}

{{ page.title }}

-
{{ page.introduction|safe }}
+
{{ page.introduction|richtext }}
{% if actus.has_previous %} - {% trans "Actualités plus récentes" %} - {% endif %} + {% trans "Actualités plus récentes" %} + {% endif %} {% if actus.has_next %} - {% trans "Actualités plus anciennes" %} - {% endif %} - + {% trans "Actualités plus anciennes" %} + {% endif %} + {% for actu in page.actus %}
@@ -36,7 +36,7 @@ {% if actu.is_event %}

{{ actu|dates|capfirst }}
{{ actu.chapo }}

{% else %} - {{ actu.body|safe|truncatewords_html:15 }} + {{ actu.body|richtext|truncatewords_html:15 }} {% endif %} {% trans "Lire plus" %} >
@@ -44,10 +44,10 @@ {% endfor %} {% if actus.has_previous %} - {% trans "Actualités plus récentes" %} - {% endif %} + {% trans "Actualités plus récentes" %} + {% endif %} {% if actus.has_next %} - {% trans "Actualités plus anciennes" %} - {% endif %} + {% trans "Actualités plus anciennes" %} + {% endif %} {% endblock %} diff --git a/gestioncof/cms/templates/cofcms/cof_actu_page.html b/gestioncof/cms/templates/cofcms/cof_actu_page.html index 09e42e91..5cd88134 100644 --- a/gestioncof/cms/templates/cofcms/cof_actu_page.html +++ b/gestioncof/cms/templates/cofcms/cof_actu_page.html @@ -1,5 +1,5 @@ {% extends "cofcms/base.html" %} -{% load wagtailimages_tags cofcms_tags i18n %} +{% load wagtailcore_tags wagtailimages_tags cofcms_tags i18n %} {% block content %}
@@ -11,7 +11,7 @@
{% image page.image width-700 %}
- {{ page.body|safe }} + {{ page.body|richtext }}
{% endblock %} diff --git a/gestioncof/cms/templates/cofcms/cof_directory_page.html b/gestioncof/cms/templates/cofcms/cof_directory_page.html index 28f3c4c8..da0fa3ce 100644 --- a/gestioncof/cms/templates/cofcms/cof_directory_page.html +++ b/gestioncof/cms/templates/cofcms/cof_directory_page.html @@ -1,5 +1,5 @@ {% extends "cofcms/base_aside.html" %} -{% load wagtailimages_tags cofcms_tags static i18n %} +{% load wagtailcore_tags wagtailimages_tags cofcms_tags static i18n %} {% block extra_head %} {{ block.super }} @@ -18,7 +18,7 @@ {% block content %}

{{ page.title }}

-
{{ page.introduction|safe }}
+
{{ page.introduction|richtext }}
@@ -28,7 +28,7 @@
{% image entry.image width-150 class="entry-img" %}
{% endif %}

{{ entry.title }}

-
{{ entry.body|safe }}
+
{{ entry.body|richtext }}
{% if entry.links %}