-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: locale mail support structural fixes,mail processing template an…
…d rendering RFT
- Loading branch information
Showing
6 changed files
with
80 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
75 changes: 75 additions & 0 deletions
75
src/templ-generator/alerts/en/spikeOrCumulativeAlert.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Alert Notification</title> | ||
<style> | ||
body { | ||
font-family: 'Helvetica Neue', Arial, sans-serif; | ||
background-color: #111; | ||
margin: 0; | ||
padding: 0; | ||
color: #fff; | ||
} | ||
.container { | ||
max-width: 600px; | ||
margin: 20px auto; | ||
background-color: #1a1a1a; | ||
padding: 20px; | ||
border-radius: 8px; | ||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); | ||
} | ||
.header { | ||
background-color: #000; | ||
color: #fff; | ||
padding: 10px; | ||
text-align: center; | ||
border-radius: 8px 8px 0 0; | ||
} | ||
.content { | ||
padding: 20px; | ||
} | ||
.content p { | ||
margin: 0 0 15px; | ||
} | ||
.footer { | ||
text-align: center; | ||
padding: 10px; | ||
font-size: 12px; | ||
color: #888; | ||
} | ||
.button { | ||
background-color: #007bff; | ||
color: #fff; | ||
padding: 10px 20px; | ||
text-align: center; | ||
text-decoration: none; | ||
display: inline-block; | ||
border-radius: 5px; | ||
margin-top: 20px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<div class="header"> | ||
<h1>WatchdogCloud Alert</h1> | ||
</div> | ||
<div class="content"> | ||
<p>Dear recipient,</p> | ||
<p>This is to notify you that the <strong>{{ component }}</strong> has exceeded the defined threshold.</p> | ||
<p><strong>Alert Type:</strong> {{ alertType }}</p> | ||
<p><strong>Component:</strong> {{ component }}</p> | ||
<p><strong>Value:</strong> {{ cumulativeOrSpikeVal }}</p> | ||
<p><strong>Threshold:</strong> {{ threshold }}</p> | ||
<p><strong>Incident Time:</strong> {{ incidentTime }}</p> | ||
<p>Please take the necessary actions to resolve this issue.</p> | ||
<p>Sent from WatchdogCloud.</p> | ||
<a href="https://your-action-link.com" class="button">Take Action</a> | ||
</div> | ||
<div class="footer"> | ||
<p>© {{ "now"|date("Y") }} WatchdogCloud - A Free Software.</p> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters