From 713d9795ca1050f3c09a8a85f904409e6962dfe7 Mon Sep 17 00:00:00 2001 From: vincent porte Date: Wed, 28 Jun 2023 16:07:16 +0200 Subject: [PATCH] wip render short_desc --- .../templates/forum/category_forum_list.html | 2 +- .../templates/forum/forum_detail.html | 22 ++++++++++++++++--- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/lacommunaute/templates/forum/category_forum_list.html b/lacommunaute/templates/forum/category_forum_list.html index 11406cfab..7ae826b23 100644 --- a/lacommunaute/templates/forum/category_forum_list.html +++ b/lacommunaute/templates/forum/category_forum_list.html @@ -29,7 +29,7 @@

texte pour le SEO

{{ forum.name }}

{% if forum.short_description %}
- {{ forum.short_description.rendered }} + {{ forum.short_description }}
{% endif %} diff --git a/lacommunaute/templates/forum/forum_detail.html b/lacommunaute/templates/forum/forum_detail.html index 8202d226a..e49ea3ec7 100644 --- a/lacommunaute/templates/forum/forum_detail.html +++ b/lacommunaute/templates/forum/forum_detail.html @@ -26,11 +26,27 @@

{% endif %} {{ forum.name }}

- {% if forum.description %} -
{{forum.description.rendered|urlizetrunc_target_blank:30}}
- {% endif %} + + {% if forum.short_description %} +
+
+

+ {{ forum.short_description }} +

+
+
+ {% endif %} + + {% if forum.description %} +
+
+
{{forum.description.rendered|urlizetrunc_target_blank:30}}
+
+
+ {% endif %} + {% if sub_forums %} {% forum_list sub_forums %} {% endif %}