From 34d2cfce8955915e79580a6189217f3609082613 Mon Sep 17 00:00:00 2001
From: vincent porte
Date: Mon, 17 Jul 2023 18:20:19 +0200
Subject: [PATCH] feat(Share): make social_share_buttons template more
parametric
---
.../partials/social_share_buttons.html | 13 -------------
.../templates/forum_conversation/topic_detail.html | 2 +-
.../templates/forum_conversation/topic_list.html | 2 +-
.../forum_conversation/topic_list_newsfeed.html | 2 +-
.../templates/partials/social_share_buttons.html | 13 +++++++++++++
5 files changed, 16 insertions(+), 16 deletions(-)
delete mode 100644 lacommunaute/templates/forum_conversation/partials/social_share_buttons.html
create mode 100644 lacommunaute/templates/partials/social_share_buttons.html
diff --git a/lacommunaute/templates/forum_conversation/partials/social_share_buttons.html b/lacommunaute/templates/forum_conversation/partials/social_share_buttons.html
deleted file mode 100644
index ffdb6c7f2..000000000
--- a/lacommunaute/templates/forum_conversation/partials/social_share_buttons.html
+++ /dev/null
@@ -1,13 +0,0 @@
-{% load i18n %}
-{% load social_share %}
-
-
-
diff --git a/lacommunaute/templates/forum_conversation/topic_detail.html b/lacommunaute/templates/forum_conversation/topic_detail.html
index d9261e937..ce6bad837 100644
--- a/lacommunaute/templates/forum_conversation/topic_detail.html
+++ b/lacommunaute/templates/forum_conversation/topic_detail.html
@@ -66,7 +66,7 @@ {{ topic.subject }}
{% include "forum_conversation/partials/topic_detail_actions.html" %}
- {% include "forum_conversation/partials/social_share_buttons.html" with topic=topic %}
+ {% include "partials/social_share_buttons.html" with text=topic.subject instance=topic %}
diff --git a/lacommunaute/templates/forum_conversation/topic_list.html b/lacommunaute/templates/forum_conversation/topic_list.html
index 663e74b48..e60c4979c 100644
--- a/lacommunaute/templates/forum_conversation/topic_list.html
+++ b/lacommunaute/templates/forum_conversation/topic_list.html
@@ -103,7 +103,7 @@
{% include "forum_conversation/partials/topic_detail_actions.html" with posts_count=topic.posts_count %}
- {% include "forum_conversation/partials/social_share_buttons.html" with topic=topic %}
+ {% include "partials/social_share_buttons.html" with text=topic.subject instance=topic %}
{% empty %}
diff --git a/lacommunaute/templates/forum_conversation/topic_list_newsfeed.html b/lacommunaute/templates/forum_conversation/topic_list_newsfeed.html
index 2bf51f29e..291e9beba 100644
--- a/lacommunaute/templates/forum_conversation/topic_list_newsfeed.html
+++ b/lacommunaute/templates/forum_conversation/topic_list_newsfeed.html
@@ -32,7 +32,7 @@
- {% include "forum_conversation/partials/social_share_buttons.html" with topic=topic %}
+ {% include "partials/social_share_buttons.html" with text=topic.subject instance=topic %}
diff --git a/lacommunaute/templates/partials/social_share_buttons.html b/lacommunaute/templates/partials/social_share_buttons.html
new file mode 100644
index 000000000..643023164
--- /dev/null
+++ b/lacommunaute/templates/partials/social_share_buttons.html
@@ -0,0 +1,13 @@
+{% load i18n %}
+{% load social_share %}
+
+
+