[31988f42] Fix: Escaped curly braces in HTML templates to resolve KeyError during format()

This commit is contained in:
2026-03-09 10:26:26 +00:00
parent 68ad818893
commit 76f1fea4ba

View File

@@ -221,11 +221,11 @@ SUCCESS_HTML = """
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<style> <style>
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; text-align: center; color: #333; padding: 40px 20px; background: transparent; } body {{ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; text-align: center; color: #333; padding: 40px 20px; background: transparent; }}
.icon { font-size: 48px; margin-bottom: 20px; } .icon {{ font-size: 48px; margin-bottom: 20px; }}
h2 { margin-bottom: 10px; color: #10b981; } h2 {{ margin-bottom: 10px; color: #10b981; }}
p { font-size: 16px; line-height: 1.5; color: #4b5563; } p {{ font-size: 16px; line-height: 1.5; color: #4b5563; }}
.details { font-weight: bold; margin-top: 15px; color: #111827; } .details {{ font-weight: bold; margin-top: 15px; color: #111827; }}
</style> </style>
</head> </head>
<body> <body>
@@ -244,11 +244,11 @@ FALLBACK_HTML = """
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<style> <style>
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; text-align: center; color: #333; margin: 0; padding: 0; background: transparent; } body {{ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; text-align: center; color: #333; margin: 0; padding: 0; background: transparent; }}
.message-box { padding: 20px; background-color: #fef3c7; color: #92400e; border-bottom: 1px solid #fcd34d; margin-bottom: 20px; } .message-box {{ padding: 20px; background-color: #fef3c7; color: #92400e; border-bottom: 1px solid #fcd34d; margin-bottom: 20px; }}
h3 { margin: 0 0 10px 0; font-size: 18px; } h3 {{ margin: 0 0 10px 0; font-size: 18px; }}
p { margin: 0; font-size: 14px; } p {{ margin: 0; font-size: 14px; }}
.iframe-container { width: 100%; height: 800px; border: none; } .iframe-container {{ width: 100%; height: 800px; border: none; }}
</style> </style>
</head> </head>
<body> <body>