[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>
<meta charset="utf-8">
<style>
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; }
h2 { margin-bottom: 10px; color: #10b981; }
p { font-size: 16px; line-height: 1.5; color: #4b5563; }
.details { font-weight: bold; margin-top: 15px; color: #111827; }
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; }}
h2 {{ margin-bottom: 10px; color: #10b981; }}
p {{ font-size: 16px; line-height: 1.5; color: #4b5563; }}
.details {{ font-weight: bold; margin-top: 15px; color: #111827; }}
</style>
</head>
<body>
@@ -244,11 +244,11 @@ FALLBACK_HTML = """
<head>
<meta charset="utf-8">
<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; }
.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; }
p { margin: 0; font-size: 14px; }
.iframe-container { width: 100%; height: 800px; border: none; }
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; }}
h3 {{ margin: 0 0 10px 0; font-size: 18px; }}
p {{ margin: 0; font-size: 14px; }}
.iframe-container {{ width: 100%; height: 800px; border: none; }}
</style>
</head>
<body>