Skip to content

feat(coderd): remove greetings from notifications templates #16991

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
Mar 21, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
improve templates for smtp
  • Loading branch information
defelmnq committed Mar 19, 2025
commit ddc4e70bd81ce494ec18dbed7b98ff40836aee63
2 changes: 1 addition & 1 deletion coderd/notifications/dispatch/smtp/html.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{{ .Labels._subject }}
</h1>
<div style="line-height: 1.5;">
Hi {{ .UserUsername }},
<p>Hi {{ .UserUsername }},</p>
{{ .Labels._body }}
</div>
<div style="text-align: center; margin-top: 32px;">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Template "Bobby's Template" deleted
</h1>
<div style=3D"line-height: 1.5;">
Hi bobby,
<p>Hi bobby,</p>
<p>Hi Bobby,</p>

<p>The template <strong>Bobby&rsquo;s Template</strong> was deleted by <str=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Template 'alpha' has been deprecated
</h1>
<div style=3D"line-height: 1.5;">
Hi bobby,
<p>Hi bobby,</p>
<p>The template <strong>alpha</strong> has been deprecated with the=
following message:</p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ argin: 8px 0 32px; line-height: 1.5;">
A test notification
</h1>
<div style=3D"line-height: 1.5;">
Hi bobby,
<p>Hi bobby,</p>
<p>This is a test notification.</p>
</div>
<div style=3D"text-align: center; margin-top: 32px;">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ argin: 8px 0 32px; line-height: 1.5;">
User account "bobby" activated
</h1>
<div style=3D"line-height: 1.5;">
Hi bobby,
<p>Hi bobby,</p>
<p>User account <strong>bobby</strong> has been activated.</p>
</div>
<div style=3D"text-align: center; margin-top: 32px;">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ argin: 8px 0 32px; line-height: 1.5;">
User account "bobby" created
</h1>
<div style=3D"line-height: 1.5;">
Hi bobby,
<p>Hi bobby,</p>
<p>New user account <strong>bobby</strong> has been created.</p>
</div>
<div style=3D"text-align: center; margin-top: 32px;">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ argin: 8px 0 32px; line-height: 1.5;">
User account "bobby" deleted
</h1>
<div style=3D"line-height: 1.5;">
Hi bobby,
<p>Hi bobby,</p>
<p>User account <strong>bobby</strong> has been deleted.</p>
</div>
<div style=3D"text-align: center; margin-top: 32px;">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ argin: 8px 0 32px; line-height: 1.5;">
User account "bobby" suspended
</h1>
<div style=3D"line-height: 1.5;">
Hi bobby,
<p>Hi bobby,</p>
<p>User account <strong>bobby</strong> has been suspended.</p>
</div>
<div style=3D"text-align: center; margin-top: 32px;">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Reset your password for Coder
</h1>
<div style=3D"line-height: 1.5;">
Hi bobby,
<p>Hi bobby,</p>
<p>A request to reset the password for your Coder account has been =
made. Your one-time passcode is:</p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Workspace "bobby-workspace" updated automatically
</h1>
<div style=3D"line-height: 1.5;">
Hi bobby,
<p>Hi bobby,</p>
<p>Your workspace <strong>bobby-workspace</strong> has been updated=
automatically to the latest template version (1.0).</p>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Workspace "bobby-workspace" autobuild failed
</h1>
<div style=3D"line-height: 1.5;">
Hi bobby,
<p>Hi bobby,</p>
<p>Automatic build of your workspace <strong>bobby-workspace</stron=
g> failed.<br>
The specified reason was &ldquo;<strong>autostart</strong>&rdquo;.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Workspace builds failed for template "Bobby First Template"
</h1>
<div style=3D"line-height: 1.5;">
Hi bobby,
<p>Hi bobby,</p>
<p>Template <strong>Bobby First Template</strong> has failed to bui=
ld <sup>4</sup>&frasl;<sub>55</sub> times over the last week.</p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Workspace 'bobby-workspace' has been created
</h1>
<div style=3D"line-height: 1.5;">
Hi bobby,
<p>Hi bobby,</p>
<p>The workspace <strong>bobby-workspace</strong> has been created =
from the template <strong>bobby-template</strong> using version <strong>alp=
ha</strong>.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Workspace "bobby-workspace" deleted
</h1>
<div style=3D"line-height: 1.5;">
Hi bobby,
<p>Hi bobby,</p>
<p>Your workspace <strong>bobby-workspace</strong> was deleted.<br>
The specified reason was &ldquo;<strong>autodeleted due to dormancy (autobu=
ild)</strong>&rdquo;.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Workspace "bobby-workspace" deleted
</h1>
<div style=3D"line-height: 1.5;">
Hi bobby,
<p>Hi bobby,</p>
<p>Your workspace <strong>bobby-workspace</strong> was deleted.<br>
The specified reason was &ldquo;<strong>autodeleted due to dormancy (autobu=
ild)</strong>&rdquo;.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Workspace "bobby-workspace" marked as dormant
</h1>
<div style=3D"line-height: 1.5;">
Hi bobby,
<p>Hi bobby,</p>
<p>Hi Bobby,</p>

<p>Your workspace <strong>bobby-workspace</strong> has been marked as <a hr=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Workspace "bobby-workspace" manual build failed
</h1>
<div style=3D"line-height: 1.5;">
Hi bobby,
<p>Hi bobby,</p>
<p>A manual build of the workspace <strong>bobby-workspace</strong>=
using the template <strong>bobby-template</strong> failed (version: <stron=
g>bobby-template-version</strong>).<br>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Workspace 'bobby-workspace' has been manually updated
</h1>
<div style=3D"line-height: 1.5;">
Hi bobby,
<p>Hi bobby,</p>
<p>A new workspace build has been manually created for your workspa=
ce <strong>bobby-workspace</strong> by <strong>bobby</strong> to update it =
to version <strong>alpha</strong> of template <strong>bobby-template</stron=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Workspace "bobby-workspace" marked for deletion
</h1>
<div style=3D"line-height: 1.5;">
Hi bobby,
<p>Hi bobby,</p>
<p>Hi Bobby,</p>

<p>Your workspace <strong>bobby-workspace</strong> has been marked for <str=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Your workspace "bobby-workspace" is low on volume space
</h1>
<div style=3D"line-height: 1.5;">
Hi bobby,
<p>Hi bobby,</p>
<p>Volume <strong><code>/home/coder</code></strong> is over 90% ful=
l in workspace <strong>bobby-workspace</strong>.</p>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Your workspace "bobby-workspace" is low on volume space
</h1>
<div style=3D"line-height: 1.5;">
Hi bobby,
<p>Hi bobby,</p>
<p>The following volumes are nearly full in workspace <strong>bobby=
-workspace</strong></p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Your workspace "bobby-workspace" is low on memory
</h1>
<div style=3D"line-height: 1.5;">
Hi bobby,
<p>Hi bobby,</p>
<p>Your workspace <strong>bobby-workspace</strong> has reached the =
memory usage threshold set at <strong>90%</strong>.</p>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Your account "bobby" has been activated
</h1>
<div style=3D"line-height: 1.5;">
Hi bobby,
<p>Hi bobby,</p>
<p>Your account <strong>bobby</strong> has been activated.</p>
</div>
<div style=3D"text-align: center; margin-top: 32px;">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Your account "bobby" has been suspended
</h1>
<div style=3D"line-height: 1.5;">
Hi bobby,
<p>Hi bobby,</p>
<p>Your account <strong>bobby</strong> has been suspended.</p>
</div>
<div style=3D"text-align: center; margin-top: 32px;">
Expand Down
Loading