From 3fc80ad709079b51385afc3a6eca888875753856 Mon Sep 17 00:00:00 2001 From: vincent porte Date: Wed, 20 Sep 2023 16:11:16 +0200 Subject: [PATCH] fix(forum_conversation) script to hide showmoreposts button --- .../forum_conversation/partials/posts_list.html | 4 ---- .../partials/topic_detail_actions.html | 10 ++-------- .../templates/forum_conversation/topic_list.html | 8 ++++++++ 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/lacommunaute/templates/forum_conversation/partials/posts_list.html b/lacommunaute/templates/forum_conversation/partials/posts_list.html index b551d7c48..8d385c409 100644 --- a/lacommunaute/templates/forum_conversation/partials/posts_list.html +++ b/lacommunaute/templates/forum_conversation/partials/posts_list.html @@ -38,7 +38,3 @@ - diff --git a/lacommunaute/templates/forum_conversation/partials/topic_detail_actions.html b/lacommunaute/templates/forum_conversation/partials/topic_detail_actions.html index 09e905812..03904fecf 100644 --- a/lacommunaute/templates/forum_conversation/partials/topic_detail_actions.html +++ b/lacommunaute/templates/forum_conversation/partials/topic_detail_actions.html @@ -22,11 +22,10 @@ id="showmoreposts-button{{topic.pk}}" hx-target="#showmorepostsarea{{topic.pk}}" hx-swap="outerHTML" - class="btn btn-secondary btn-sm btn-ico matomo-event justify-content-center w-100 w-sm-auto me-sm-1 mb-2 mb-sm-0" + class="btn btn-secondary btn-sm btn-ico matomo-event justify-content-center w-100 w-sm-auto me-sm-1 mb-2 mb-sm-0 showmoreposts-button" 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" > @@ -66,9 +65,4 @@ {% endif %} - + diff --git a/lacommunaute/templates/forum_conversation/topic_list.html b/lacommunaute/templates/forum_conversation/topic_list.html index 013746f8f..4055fb424 100644 --- a/lacommunaute/templates/forum_conversation/topic_list.html +++ b/lacommunaute/templates/forum_conversation/topic_list.html @@ -136,3 +136,11 @@ {% endif %} {% endif %} + + +