maj auto 2

This commit is contained in:
xavier committed 2026-08-17 12:45:08 +02:00
1 parent db2b137d6b
commit 98bd4d7fbf
5 files changed
+142 -73

No files matched your search

+8 -4
View File
@@ -1,14 +1,18 @@
# modules/paypal.py
import os
from fasthtml.common import *
def render_paypal_donation_widget():
"""Génère le bouton de don PayPal pour l'interface sidebar."""
# Remplacez l'URL ci-dessous par votre véritable lien ou bouton de don PayPal
paypal_url = "https://www.paypal.com/donate?hosted_button_id=VOTRE_ID_PAYPAL"
# Lecture forcée de la variable d'environnement
paypal_url = os.environ.get("PAYPAL_DONATION_LINK", "")
if not paypal_url:
return Div(id="paypal-widget-placeholder")
return Div(
A(
"☕ Faire un don PayPal",
"☕ Faire un don",
href=paypal_url,
target="_blank",
cls="export-btn",