From f338d1193500cf3145249cec8b70a0d4c4d8c538 Mon Sep 17 00:00:00 2001 From: vincent porte Date: Thu, 21 Sep 2023 11:31:16 +0200 Subject: [PATCH 1/3] linter --- .../partials/posts_list.html | 2 +- .../partials/topic_detail_actions.html | 20 +++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lacommunaute/templates/forum_conversation/partials/posts_list.html b/lacommunaute/templates/forum_conversation/partials/posts_list.html index 3abd1681c..4b989c80f 100644 --- a/lacommunaute/templates/forum_conversation/partials/posts_list.html +++ b/lacommunaute/templates/forum_conversation/partials/posts_list.html @@ -9,7 +9,7 @@
{% for post in posts %}
+ id="certifiedpostsarea{{post.pk}}">
diff --git a/lacommunaute/templates/forum_conversation/partials/topic_detail_actions.html b/lacommunaute/templates/forum_conversation/partials/topic_detail_actions.html index 295eff281..b6fe094bd 100644 --- a/lacommunaute/templates/forum_conversation/partials/topic_detail_actions.html +++ b/lacommunaute/templates/forum_conversation/partials/topic_detail_actions.html @@ -19,16 +19,16 @@ {% if posts_count > 1 %} From d04f312f17fb9e1fa0335cfa3b3cf7be148bb9ba Mon Sep 17 00:00:00 2001 From: vincent porte Date: Thu, 21 Sep 2023 11:32:35 +0200 Subject: [PATCH 2/3] fix(forum_conversation): remove onclick DisabledMe cause it has no effect --- .../forum_conversation/partials/topic_detail_actions.html | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lacommunaute/templates/forum_conversation/partials/topic_detail_actions.html b/lacommunaute/templates/forum_conversation/partials/topic_detail_actions.html index b6fe094bd..52ba7d2f8 100644 --- a/lacommunaute/templates/forum_conversation/partials/topic_detail_actions.html +++ b/lacommunaute/templates/forum_conversation/partials/topic_detail_actions.html @@ -26,7 +26,6 @@ data-matomo-category="engagement" data-matomo-action="showmore" data-matomo-option="post" - onclick=DisabledMe("showmoreposts-button{{topic.pk}}") aria-label="{% trans "Show me the comment" %}" role="button" > @@ -64,10 +63,3 @@ {% endif %}
{% endif %} - - - From 99256b735e3200a2889b01d4a067c39923d6aef0 Mon Sep 17 00:00:00 2001 From: vincent porte Date: Thu, 21 Sep 2023 11:33:44 +0200 Subject: [PATCH 3/3] fix(forum_conversation): move script which add d-none class at topic_list level instead of posts_list level to prevent duplicate --- .../templates/forum_conversation/partials/posts_list.html | 5 ----- lacommunaute/templates/forum_conversation/topic_list.html | 7 +++++++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lacommunaute/templates/forum_conversation/partials/posts_list.html b/lacommunaute/templates/forum_conversation/partials/posts_list.html index 4b989c80f..866dd1936 100644 --- a/lacommunaute/templates/forum_conversation/partials/posts_list.html +++ b/lacommunaute/templates/forum_conversation/partials/posts_list.html @@ -37,8 +37,3 @@ {% include "forum_conversation/partials/post_feed_form_collapsable.html" with post_form=form inline=1 %}
- - diff --git a/lacommunaute/templates/forum_conversation/topic_list.html b/lacommunaute/templates/forum_conversation/topic_list.html index 013746f8f..a395134b1 100644 --- a/lacommunaute/templates/forum_conversation/topic_list.html +++ b/lacommunaute/templates/forum_conversation/topic_list.html @@ -136,3 +136,10 @@ {% endif %} {% endif %}
+ +