Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
IonesioJunior committed Feb 23, 2024
1 parent a5eefb1 commit dd57951
Showing 1 changed file with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions packages/syft/src/syft/service/notification/email_templates.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# stdlib
from typing import TYPE_CHECKING

# relative
from ..context import AuthedServiceContext

if TYPE_CHECKING:
# relative
from .notifications import Notification


class EmailTemplate:
pass
Expand Down Expand Up @@ -61,7 +68,8 @@ def email_body(notification: "Notification", context: AuthedServiceContext) -> s
<div class="container">
<h1>Welcome to {context.node.name} node!</h1>
<p>Hello,</p>
<p>We're thrilled to have you on board and excited to help you get started with our powerful features:</p>
<p>We're thrilled to have you on board and
excited to help you get started with our powerful features:</p>
<div class="feature">
<h3>Remote Data Science</h3>
Expand All @@ -75,7 +83,8 @@ def email_body(notification: "Notification", context: AuthedServiceContext) -> s
<!-- Add more features here if needed -->
<p>Explore these features and much more within your account. If you have any questions or need assistance, don't hesitate to reach out.</p>
<p>Explore these features and much more within your account.
If you have any questions or need assistance, don't hesitate to reach out.</p>
<p>Cheers,</p>
<p>{admin_name}</p>
Expand Down Expand Up @@ -178,21 +187,27 @@ def email_body(notification: "Notification", context: AuthedServiceContext) -> s
</div>
<div class="content">
<p>Hello,</p>
<p>A new request has been submitted and requires your attention. Please review the details below:</p>
<p>A new request has been submitted and requires your attention.
Please review the details below:</p>
<div class="request-card">
<div class="request-header">Request Details</div>
<div class="request-content">
<p><strong>ID:</strong> {request_obj.id}</p>
<p><strong>Submitted By:</strong> {request_obj.requesting_user_name} {request_obj.requesting_user_email or ""}</p>
<p>
<strong>Submitted By:</strong>
{request_obj.requesting_user_name} {request_obj.requesting_user_email or ""}
</p>
<p><strong>Date:</strong> {request_obj.request_time}</p>
<p><strong>Changes:</strong> {",".join([change.__class__.__name__ for change in request_obj.changes])}</p>
<p>
<strong>Changes:</strong>
{",".join([change.__class__.__name__ for change in request_obj.changes])}
</p>
</div>
</div>
<p>To review and respond to this request, please click the button below:</p>
<a href="#" class="button">Review Request</a>
<p>If you did not expect this request or have concerns about it, please contact our support team immediately.</p>
<p>If you did not expect this request or have concerns about it,
please contact our support team immediately.</p>
</div>
<div class="footer">
This is an automated message, please do not reply directly to this email. <br>
Expand Down

0 comments on commit dd57951

Please sign in to comment.