From 338d8b2cf52974860063c388c708b1418a328f0a Mon Sep 17 00:00:00 2001 From: Serreau Jovann Date: Mon, 24 Nov 2025 16:59:42 +0100 Subject: [PATCH] =?UTF-8?q?```=20=E2=9C=A8=20feat(templates):=20Ajoute=20b?= =?UTF-8?q?adge=20Stripe=20Climate=20au=20pied=20de=20page=20et=20CSP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ajoute les badges Stripe Climate pour afficher nos actions et met à jour la CSP pour autoriser climate.stripe.com. ``` --- ansible/templates/caddy.j2 | 2 +- templates/base.twig | 5 ++++- translations/messages.cn.yaml | 1 + translations/messages.en.yaml | 1 + translations/messages.fr.yaml | 1 + 5 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ansible/templates/caddy.j2 b/ansible/templates/caddy.j2 index e1b32ba..3f82587 100644 --- a/ansible/templates/caddy.j2 +++ b/ansible/templates/caddy.j2 @@ -17,7 +17,7 @@ www.e-cosplay.fr { header { -X-Robots-Tag Permissions-Policy "accelerometer=(), autoplay=(), encrypted-media=(), geolocation=(), gyroscope=(), magnetometer=(), midi=(), payment=(), publickey-credentials-get=(), usb=(), screen-wake-lock=(), xr-spatial-tracking=(), bluetooth=(), gamepad=()" - Content-Security-Policy "base-uri 'self'; default-src 'self'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; script-src 'self' 'unsafe-inline' https://www.e-cosplay.fr https://datas.e-cosplay.fr https://app.chatwoot.com https://*.cloudflareinsights.com https://storage.googleapis.com https://*.trustpilot.com; font-src 'self' https://fonts.gstatic.com;connect-src https://*.e-cosplay.fr https://*.cloudflareinsights.com https://fonts.googleapis.com https://widget.trustpilot.com/ https://challenges.cloudflare.com https://app.chatwoot.com; frame-src 'self' https://*.trustpilot.com https://app.chatwoot.com; worker-src 'self' blob:;" + Content-Security-Policy "base-uri 'self'; default-src 'self'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; script-src 'self' 'unsafe-inline' https://www.e-cosplay.fr https://datas.e-cosplay.fr https://app.chatwoot.com https://*.cloudflareinsights.com https://storage.googleapis.com https://*.trustpilot.com https://climate.stripe.com; font-src 'self' https://fonts.gstatic.com;connect-src https://*.e-cosplay.fr https://*.cloudflareinsights.com https://fonts.googleapis.com https://widget.trustpilot.com/ https://challenges.cloudflare.com https://app.chatwoot.com; frame-src 'self' https://*.trustpilot.com https://app.chatwoot.com https://climate.stripe.com; worker-src 'self' blob:;" Cross-Origin-Embedder-Policy "" Cross-Origin-Opener-Policy "" Cross-Origin-Resource-Policy "" diff --git a/templates/base.twig b/templates/base.twig index 033db99..fccc5ef 100644 --- a/templates/base.twig +++ b/templates/base.twig @@ -419,7 +419,7 @@ {# 2. Réseaux Sociaux #} -
+

{{ 'footer_follow_us_title'|trans }}

+

{{ 'footer_action_title'|trans }}

+ +
{# 3. Bloc Personnalisable (E-Cosplay mission) #} diff --git a/translations/messages.cn.yaml b/translations/messages.cn.yaml index 500eb65..d6c894f 100644 --- a/translations/messages.cn.yaml +++ b/translations/messages.cn.yaml @@ -667,3 +667,4 @@ adh_page_validate: breadcrumb: "签名已验证" success_message: "您的签名已成功记录并验证。您现在可以查看已签署的文件。" thanks: "感谢您的参与!" +footer_action_title: "我们的行动" diff --git a/translations/messages.en.yaml b/translations/messages.en.yaml index 62285f0..3084ced 100644 --- a/translations/messages.en.yaml +++ b/translations/messages.en.yaml @@ -735,3 +735,4 @@ adh_page_validate: breadcrumb: "Signature Validated" success_message: "Your signature has been successfully recorded and validated for the General Assembly. You can now view the signed document." thanks: "Thank you for your participation!" +footer_action_title: "Our actions" diff --git a/translations/messages.fr.yaml b/translations/messages.fr.yaml index 02df7dd..4225982 100644 --- a/translations/messages.fr.yaml +++ b/translations/messages.fr.yaml @@ -380,6 +380,7 @@ checkout_button: "Passer à la caisse" shipping_disclaimer: "Frais de port calculés à l'étape suivante." footer_contact_title: "Nous Contacter" footer_follow_us_title: "Nous Suivre" +footer_action_title: "Nos Actions" footer_mission_description: | E-Cosplay est une association dédiée à la promotion et à l'organisation d'événements autour du cosplay en France. Notre mission est de fournir