Skip to content

Commit b51c005

Browse files
committed
fix templates
1 parent 521a13b commit b51c005

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
UPDATE notification_templates SET body_template = E'Your workspace **{{.Labels.name}}** has been marked as [**dormant**](https://coder.com/docs/templates/schedule#dormancy-threshold-enterprise) due to inactivity exceeding the dormancy threshold.' ||
2-
E'This workspace will be automatically deleted in {{.Labels.timeTilDormant}} if it remains inactive.' ||
1+
UPDATE notification_templates SET body_template = E'Your workspace **{{.Labels.name}}** has been marked as [**dormant**](https://coder.com/docs/templates/schedule#dormancy-threshold-enterprise) due to inactivity exceeding the dormancy threshold.\n\n' ||
2+
E'This workspace will be automatically deleted in {{.Labels.timeTilDormant}} if it remains inactive.\n\n' ||
33
E'To prevent deletion, activate your workspace using the link below.' WHERE id = '0ea69165-ec14-4314-91f1-69566ac3c5a0';

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

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@ Hi Bobby,
1414

1515
Your workspace bobby-workspace has been marked as dormant (https://coder.co=
1616
m/docs/templates/schedule#dormancy-threshold-enterprise) due to inactivity =
17-
exceeding the dormancy threshold.This workspace will be automatically delet=
18-
ed in 24 hours if it remains inactive.To prevent deletion, activate your wo=
19-
rkspace using the link below.
17+
exceeding the dormancy threshold.
18+
19+
This workspace will be automatically deleted in 24 hours if it remains inac=
20+
tive.
21+
22+
To prevent deletion, activate your workspace using the link below.
2023

2124

2225
View workspace: http://test.com/@bobby/bobby-workspace
@@ -53,9 +56,12 @@ argin: 8px 0 32px; line-height: 1.5;">
5356
<p>Your workspace <strong>bobby-workspace</strong> has been marked =
5457
as <a href=3D"https://coder.com/docs/templates/schedule#dormancy-threshold-=
5558
enterprise"><strong>dormant</strong></a> due to inactivity exceeding the do=
56-
rmancy threshold.This workspace will be automatically deleted in 24 hours i=
57-
f it remains inactive.To prevent deletion, activate your workspace using th=
58-
e link below.</p>
59+
rmancy threshold.</p>
60+
61+
<p>This workspace will be automatically deleted in 24 hours if it remains i=
62+
nactive.</p>
63+
64+
<p>To prevent deletion, activate your workspace using the link below.</p>
5965
</div>
6066
<div style=3D"text-align: center; margin-top: 32px;">
6167
=20

coderd/notifications/testdata/rendered-templates/webhook/TemplateWorkspaceDormant.json.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@
2727
},
2828
"title": "Workspace \"bobby-workspace\" marked as dormant",
2929
"title_markdown": "Workspace \"bobby-workspace\" marked as dormant",
30-
"body": "Your workspace bobby-workspace has been marked as dormant (https://coder.com/docs/templates/schedule#dormancy-threshold-enterprise) due to inactivity exceeding the dormancy threshold.This workspace will be automatically deleted in 24 hours if it remains inactive.To prevent deletion, activate your workspace using the link below.",
31-
"body_markdown": "Your workspace **bobby-workspace** has been marked as [**dormant**](https://coder.com/docs/templates/schedule#dormancy-threshold-enterprise) due to inactivity exceeding the dormancy threshold.This workspace will be automatically deleted in 24 hours if it remains inactive.To prevent deletion, activate your workspace using the link below."
30+
"body": "Your workspace bobby-workspace has been marked as dormant (https://coder.com/docs/templates/schedule#dormancy-threshold-enterprise) due to inactivity exceeding the dormancy threshold.\n\nThis workspace will be automatically deleted in 24 hours if it remains inactive.\n\nTo prevent deletion, activate your workspace using the link below.",
31+
"body_markdown": "Your workspace **bobby-workspace** has been marked as [**dormant**](https://coder.com/docs/templates/schedule#dormancy-threshold-enterprise) due to inactivity exceeding the dormancy threshold.\n\nThis workspace will be automatically deleted in 24 hours if it remains inactive.\n\nTo prevent deletion, activate your workspace using the link below."
3232
}

0 commit comments

Comments
 (0)