Skip to content

Commit ddc4e70

Browse files
committed
improve templates for smtp
1 parent 7914983 commit ddc4e70

24 files changed

+24
-24
lines changed

coderd/notifications/dispatch/smtp/html.gotmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
{{ .Labels._subject }}
1515
</h1>
1616
<div style="line-height: 1.5;">
17-
Hi {{ .UserUsername }},
17+
<p>Hi {{ .UserUsername }},</p>
1818
{{ .Labels._body }}
1919
</div>
2020
<div style="text-align: center; margin-top: 32px;">

coderd/notifications/testdata/rendered-templates/smtp/TemplateTemplateDeleted.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4545
Template "Bobby's Template" deleted
4646
</h1>
4747
<div style=3D"line-height: 1.5;">
48-
Hi bobby,
48+
<p>Hi bobby,</p>
4949
<p>Hi Bobby,</p>
5050

5151
<p>The template <strong>Bobby&rsquo;s Template</strong> was deleted by <str=

coderd/notifications/testdata/rendered-templates/smtp/TemplateTemplateDeprecated.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ argin: 8px 0 32px; line-height: 1.5;">
5151
Template 'alpha' has been deprecated
5252
</h1>
5353
<div style=3D"line-height: 1.5;">
54-
Hi bobby,
54+
<p>Hi bobby,</p>
5555
<p>The template <strong>alpha</strong> has been deprecated with the=
5656
following message:</p>
5757

coderd/notifications/testdata/rendered-templates/smtp/TemplateTestNotification.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4444
A test notification
4545
</h1>
4646
<div style=3D"line-height: 1.5;">
47-
Hi bobby,
47+
<p>Hi bobby,</p>
4848
<p>This is a test notification.</p>
4949
</div>
5050
<div style=3D"text-align: center; margin-top: 32px;">

coderd/notifications/testdata/rendered-templates/smtp/TemplateUserAccountActivated.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4343
User account "bobby" activated
4444
</h1>
4545
<div style=3D"line-height: 1.5;">
46-
Hi bobby,
46+
<p>Hi bobby,</p>
4747
<p>User account <strong>bobby</strong> has been activated.</p>
4848
</div>
4949
<div style=3D"text-align: center; margin-top: 32px;">

coderd/notifications/testdata/rendered-templates/smtp/TemplateUserAccountCreated.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4343
User account "bobby" created
4444
</h1>
4545
<div style=3D"line-height: 1.5;">
46-
Hi bobby,
46+
<p>Hi bobby,</p>
4747
<p>New user account <strong>bobby</strong> has been created.</p>
4848
</div>
4949
<div style=3D"text-align: center; margin-top: 32px;">

coderd/notifications/testdata/rendered-templates/smtp/TemplateUserAccountDeleted.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4343
User account "bobby" deleted
4444
</h1>
4545
<div style=3D"line-height: 1.5;">
46-
Hi bobby,
46+
<p>Hi bobby,</p>
4747
<p>User account <strong>bobby</strong> has been deleted.</p>
4848
</div>
4949
<div style=3D"text-align: center; margin-top: 32px;">

coderd/notifications/testdata/rendered-templates/smtp/TemplateUserAccountSuspended.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4444
User account "bobby" suspended
4545
</h1>
4646
<div style=3D"line-height: 1.5;">
47-
Hi bobby,
47+
<p>Hi bobby,</p>
4848
<p>User account <strong>bobby</strong> has been suspended.</p>
4949
</div>
5050
<div style=3D"text-align: center; margin-top: 32px;">

coderd/notifications/testdata/rendered-templates/smtp/TemplateUserRequestedOneTimePasscode.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4949
Reset your password for Coder
5050
</h1>
5151
<div style=3D"line-height: 1.5;">
52-
Hi bobby,
52+
<p>Hi bobby,</p>
5353
<p>A request to reset the password for your Coder account has been =
5454
made. Your one-time passcode is:</p>
5555

coderd/notifications/testdata/rendered-templates/smtp/TemplateWorkspaceAutoUpdated.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4444
Workspace "bobby-workspace" updated automatically
4545
</h1>
4646
<div style=3D"line-height: 1.5;">
47-
Hi bobby,
47+
<p>Hi bobby,</p>
4848
<p>Your workspace <strong>bobby-workspace</strong> has been updated=
4949
automatically to the latest template version (1.0).</p>
5050
</div>

coderd/notifications/testdata/rendered-templates/smtp/TemplateWorkspaceAutobuildFailed.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4444
Workspace "bobby-workspace" autobuild failed
4545
</h1>
4646
<div style=3D"line-height: 1.5;">
47-
Hi bobby,
47+
<p>Hi bobby,</p>
4848
<p>Automatic build of your workspace <strong>bobby-workspace</stron=
4949
g> failed.<br>
5050
The specified reason was &ldquo;<strong>autostart</strong>&rdquo;.</p>

coderd/notifications/testdata/rendered-templates/smtp/TemplateWorkspaceBuildsFailedReport.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ argin: 8px 0 32px; line-height: 1.5;">
6363
Workspace builds failed for template "Bobby First Template"
6464
</h1>
6565
<div style=3D"line-height: 1.5;">
66-
Hi bobby,
66+
<p>Hi bobby,</p>
6767
<p>Template <strong>Bobby First Template</strong> has failed to bui=
6868
ld <sup>4</sup>&frasl;<sub>55</sub> times over the last week.</p>
6969

coderd/notifications/testdata/rendered-templates/smtp/TemplateWorkspaceCreated.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4444
Workspace 'bobby-workspace' has been created
4545
</h1>
4646
<div style=3D"line-height: 1.5;">
47-
Hi bobby,
47+
<p>Hi bobby,</p>
4848
<p>The workspace <strong>bobby-workspace</strong> has been created =
4949
from the template <strong>bobby-template</strong> using version <strong>alp=
5050
ha</strong>.</p>

coderd/notifications/testdata/rendered-templates/smtp/TemplateWorkspaceDeleted.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4646
Workspace "bobby-workspace" deleted
4747
</h1>
4848
<div style=3D"line-height: 1.5;">
49-
Hi bobby,
49+
<p>Hi bobby,</p>
5050
<p>Your workspace <strong>bobby-workspace</strong> was deleted.<br>
5151
The specified reason was &ldquo;<strong>autodeleted due to dormancy (autobu=
5252
ild)</strong>&rdquo;.</p>

coderd/notifications/testdata/rendered-templates/smtp/TemplateWorkspaceDeleted_CustomAppearance.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4646
Workspace "bobby-workspace" deleted
4747
</h1>
4848
<div style=3D"line-height: 1.5;">
49-
Hi bobby,
49+
<p>Hi bobby,</p>
5050
<p>Your workspace <strong>bobby-workspace</strong> was deleted.<br>
5151
The specified reason was &ldquo;<strong>autodeleted due to dormancy (autobu=
5252
ild)</strong>&rdquo;.</p>

coderd/notifications/testdata/rendered-templates/smtp/TemplateWorkspaceDormant.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ argin: 8px 0 32px; line-height: 1.5;">
5151
Workspace "bobby-workspace" marked as dormant
5252
</h1>
5353
<div style=3D"line-height: 1.5;">
54-
Hi bobby,
54+
<p>Hi bobby,</p>
5555
<p>Hi Bobby,</p>
5656

5757
<p>Your workspace <strong>bobby-workspace</strong> has been marked as <a hr=

coderd/notifications/testdata/rendered-templates/smtp/TemplateWorkspaceManualBuildFailed.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4545
Workspace "bobby-workspace" manual build failed
4646
</h1>
4747
<div style=3D"line-height: 1.5;">
48-
Hi bobby,
48+
<p>Hi bobby,</p>
4949
<p>A manual build of the workspace <strong>bobby-workspace</strong>=
5050
using the template <strong>bobby-template</strong> failed (version: <stron=
5151
g>bobby-template-version</strong>).<br>

coderd/notifications/testdata/rendered-templates/smtp/TemplateWorkspaceManuallyUpdated.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4747
Workspace 'bobby-workspace' has been manually updated
4848
</h1>
4949
<div style=3D"line-height: 1.5;">
50-
Hi bobby,
50+
<p>Hi bobby,</p>
5151
<p>A new workspace build has been manually created for your workspa=
5252
ce <strong>bobby-workspace</strong> by <strong>bobby</strong> to update it =
5353
to version <strong>alpha</strong> of template <strong>bobby-template</stron=

coderd/notifications/testdata/rendered-templates/smtp/TemplateWorkspaceMarkedForDeletion.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4848
Workspace "bobby-workspace" marked for deletion
4949
</h1>
5050
<div style=3D"line-height: 1.5;">
51-
Hi bobby,
51+
<p>Hi bobby,</p>
5252
<p>Hi Bobby,</p>
5353

5454
<p>Your workspace <strong>bobby-workspace</strong> has been marked for <str=

coderd/notifications/testdata/rendered-templates/smtp/TemplateWorkspaceOutOfDisk.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4343
Your workspace "bobby-workspace" is low on volume space
4444
</h1>
4545
<div style=3D"line-height: 1.5;">
46-
Hi bobby,
46+
<p>Hi bobby,</p>
4747
<p>Volume <strong><code>/home/coder</code></strong> is over 90% ful=
4848
l in workspace <strong>bobby-workspace</strong>.</p>
4949
</div>

coderd/notifications/testdata/rendered-templates/smtp/TemplateWorkspaceOutOfDisk_MultipleVolumes.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4747
Your workspace "bobby-workspace" is low on volume space
4848
</h1>
4949
<div style=3D"line-height: 1.5;">
50-
Hi bobby,
50+
<p>Hi bobby,</p>
5151
<p>The following volumes are nearly full in workspace <strong>bobby=
5252
-workspace</strong></p>
5353

coderd/notifications/testdata/rendered-templates/smtp/TemplateWorkspaceOutOfMemory.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4444
Your workspace "bobby-workspace" is low on memory
4545
</h1>
4646
<div style=3D"line-height: 1.5;">
47-
Hi bobby,
47+
<p>Hi bobby,</p>
4848
<p>Your workspace <strong>bobby-workspace</strong> has reached the =
4949
memory usage threshold set at <strong>90%</strong>.</p>
5050
</div>

coderd/notifications/testdata/rendered-templates/smtp/TemplateYourAccountActivated.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4343
Your account "bobby" has been activated
4444
</h1>
4545
<div style=3D"line-height: 1.5;">
46-
Hi bobby,
46+
<p>Hi bobby,</p>
4747
<p>Your account <strong>bobby</strong> has been activated.</p>
4848
</div>
4949
<div style=3D"text-align: center; margin-top: 32px;">

coderd/notifications/testdata/rendered-templates/smtp/TemplateYourAccountSuspended.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4141
Your account "bobby" has been suspended
4242
</h1>
4343
<div style=3D"line-height: 1.5;">
44-
Hi bobby,
44+
<p>Hi bobby,</p>
4545
<p>Your account <strong>bobby</strong> has been suspended.</p>
4646
</div>
4747
<div style=3D"text-align: center; margin-top: 32px;">

0 commit comments

Comments
 (0)