Skip to content

Commit f882bea

Browse files
committed
add changes in plaintext
1 parent 5c52ec4 commit f882bea

24 files changed

+48
-1
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
Hi {{ .UserName }},
12
{{ .Labels._body }}
23

34
{{ range $action := .Actions }}
45
{{ $action.Label }}: {{ $action.URL }}
5-
{{ end }}
6+
{{ end }}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ MIME-Version: 1.0
1010
Content-Transfer-Encoding: quoted-printable
1111
Content-Type: text/plain; charset=UTF-8
1212

13+
Hi Bobby,
1314
The template Bobby's Template was deleted by rob.
1415

1516

1617
View templates: http://test.com/templates
1718

19+
1820
--bbe61b741255b6098bb6b3c1f41b885773df633cb18d2a3002b68e4bc9c4
1921
Content-Transfer-Encoding: quoted-printable
2022
Content-Type: text/html; charset=UTF-8

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ MIME-Version: 1.0
1010
Content-Transfer-Encoding: quoted-printable
1111
Content-Type: text/plain; charset=UTF-8
1212

13+
Hi Bobby,
1314
The template alpha has been deprecated with the following message:
1415

1516
This template has been replaced by beta
@@ -23,6 +24,7 @@ plate%3Aalpha
2324

2425
View template: http://test.com/templates/coder/alpha
2526

27+
2628
--bbe61b741255b6098bb6b3c1f41b885773df633cb18d2a3002b68e4bc9c4
2729
Content-Transfer-Encoding: quoted-printable
2830
Content-Type: text/html; charset=UTF-8

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ MIME-Version: 1.0
1010
Content-Transfer-Encoding: quoted-printable
1111
Content-Type: text/plain; charset=UTF-8
1212

13+
Hi Bobby,
1314
This is a test notification.
1415

1516

1617
View notification settings: http://test.com/deployment/notifications?tab=3D=
1718
settings
1819

20+
1921
--bbe61b741255b6098bb6b3c1f41b885773df633cb18d2a3002b68e4bc9c4
2022
Content-Transfer-Encoding: quoted-printable
2123
Content-Type: text/html; charset=UTF-8

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ MIME-Version: 1.0
1010
Content-Transfer-Encoding: quoted-printable
1111
Content-Type: text/plain; charset=UTF-8
1212

13+
Hi Bobby,
1314
User account bobby has been activated.
1415

1516
The account belongs to William Tables and it was activated by rob.
1617

1718

1819
View accounts: http://test.com/deployment/users?filter=3Dstatus%3Aactive
1920

21+
2022
--bbe61b741255b6098bb6b3c1f41b885773df633cb18d2a3002b68e4bc9c4
2123
Content-Transfer-Encoding: quoted-printable
2224
Content-Type: text/html; charset=UTF-8

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ MIME-Version: 1.0
1010
Content-Transfer-Encoding: quoted-printable
1111
Content-Type: text/plain; charset=UTF-8
1212

13+
Hi Bobby,
1314
New user account bobby has been created.
1415

1516
This new user account was created for William Tables by rob.
1617

1718

1819
View accounts: http://test.com/deployment/users?filter=3Dstatus%3Aactive
1920

21+
2022
--bbe61b741255b6098bb6b3c1f41b885773df633cb18d2a3002b68e4bc9c4
2123
Content-Transfer-Encoding: quoted-printable
2224
Content-Type: text/html; charset=UTF-8

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ MIME-Version: 1.0
1010
Content-Transfer-Encoding: quoted-printable
1111
Content-Type: text/plain; charset=UTF-8
1212

13+
Hi Bobby,
1314
User account bobby has been deleted.
1415

1516
The deleted account belonged to William Tables and was deleted by rob.
1617

1718

1819
View accounts: http://test.com/deployment/users?filter=3Dstatus%3Aactive
1920

21+
2022
--bbe61b741255b6098bb6b3c1f41b885773df633cb18d2a3002b68e4bc9c4
2123
Content-Transfer-Encoding: quoted-printable
2224
Content-Type: text/html; charset=UTF-8

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ MIME-Version: 1.0
1010
Content-Transfer-Encoding: quoted-printable
1111
Content-Type: text/plain; charset=UTF-8
1212

13+
Hi Bobby,
1314
User account bobby has been suspended.
1415

1516
The account belongs to William Tables and it was suspended by rob.
@@ -18,6 +19,7 @@ The account belongs to William Tables and it was suspended by rob.
1819
View suspended accounts: http://test.com/deployment/users?filter=3Dstatus%3=
1920
Asuspended
2021

22+
2123
--bbe61b741255b6098bb6b3c1f41b885773df633cb18d2a3002b68e4bc9c4
2224
Content-Transfer-Encoding: quoted-printable
2325
Content-Type: text/html; charset=UTF-8

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ MIME-Version: 1.0
1010
Content-Transfer-Encoding: quoted-printable
1111
Content-Type: text/plain; charset=UTF-8
1212

13+
Hi Bobby,
1314
Use the link below to reset your password.
1415

1516
If you did not make this request, you can ignore this message.
@@ -18,6 +19,7 @@ If you did not make this request, you can ignore this message.
1819
Reset password: http://test.com/reset-password/change?otp=3Dfad9020b-6562-4=
1920
cdb-87f1-0486f1bea415&email=3Dbobby%2Fdrop-table%2Buser%40coder.com
2021

22+
2123
--bbe61b741255b6098bb6b3c1f41b885773df633cb18d2a3002b68e4bc9c4
2224
Content-Transfer-Encoding: quoted-printable
2325
Content-Type: text/html; charset=UTF-8

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ MIME-Version: 1.0
1010
Content-Transfer-Encoding: quoted-printable
1111
Content-Type: text/plain; charset=UTF-8
1212

13+
Hi Bobby,
1314
Your workspace bobby-workspace has been updated automatically to the latest=
1415
template version (1.0).
1516

@@ -18,6 +19,7 @@ Reason for update: template now includes catnip.
1819

1920
View workspace: http://test.com/@bobby/bobby-workspace
2021

22+
2123
--bbe61b741255b6098bb6b3c1f41b885773df633cb18d2a3002b68e4bc9c4
2224
Content-Transfer-Encoding: quoted-printable
2325
Content-Type: text/html; charset=UTF-8

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ MIME-Version: 1.0
1010
Content-Transfer-Encoding: quoted-printable
1111
Content-Type: text/plain; charset=UTF-8
1212

13+
Hi Bobby,
1314
Automatic build of your workspace bobby-workspace failed.
1415

1516
The specified reason was "autostart".
1617

1718

1819
View workspace: http://test.com/@bobby/bobby-workspace
1920

21+
2022
--bbe61b741255b6098bb6b3c1f41b885773df633cb18d2a3002b68e4bc9c4
2123
Content-Transfer-Encoding: quoted-printable
2224
Content-Type: text/html; charset=UTF-8

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ MIME-Version: 1.0
1010
Content-Transfer-Encoding: quoted-printable
1111
Content-Type: text/plain; charset=UTF-8
1212

13+
Hi Bobby,
1314
Template Bobby First Template has failed to build 4/55 times over the last =
1415
week.
1516

@@ -34,6 +35,7 @@ We recommend reviewing these issues to ensure future builds are successful.
3435
View workspaces: http://test.com/workspaces?filter=3Dtemplate%3Abobby-first=
3536
-template
3637

38+
3739
--bbe61b741255b6098bb6b3c1f41b885773df633cb18d2a3002b68e4bc9c4
3840
Content-Transfer-Encoding: quoted-printable
3941
Content-Type: text/html; charset=UTF-8

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ MIME-Version: 1.0
1010
Content-Transfer-Encoding: quoted-printable
1111
Content-Type: text/plain; charset=UTF-8
1212

13+
Hi Bobby,
1314
The workspace bobby-workspace has been created from the template bobby-temp=
1415
late using version alpha.
1516

1617

1718
View workspace: http://test.com/@bobby/bobby-workspace
1819

20+
1921
--bbe61b741255b6098bb6b3c1f41b885773df633cb18d2a3002b68e4bc9c4
2022
Content-Transfer-Encoding: quoted-printable
2123
Content-Type: text/html; charset=UTF-8

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ MIME-Version: 1.0
1010
Content-Transfer-Encoding: quoted-printable
1111
Content-Type: text/plain; charset=UTF-8
1212

13+
Hi Bobby,
1314
Your workspace bobby-workspace was deleted.
1415

1516
The specified reason was "autodeleted due to dormancy (autobuild)".
@@ -19,6 +20,7 @@ View workspaces: http://test.com/workspaces
1920

2021
View templates: http://test.com/templates
2122

23+
2224
--bbe61b741255b6098bb6b3c1f41b885773df633cb18d2a3002b68e4bc9c4
2325
Content-Transfer-Encoding: quoted-printable
2426
Content-Type: text/html; charset=UTF-8

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ MIME-Version: 1.0
1010
Content-Transfer-Encoding: quoted-printable
1111
Content-Type: text/plain; charset=UTF-8
1212

13+
Hi Bobby,
1314
Your workspace bobby-workspace was deleted.
1415

1516
The specified reason was "autodeleted due to dormancy (autobuild)".
@@ -19,6 +20,7 @@ View workspaces: http://test.com/workspaces
1920

2021
View templates: http://test.com/templates
2122

23+
2224
--bbe61b741255b6098bb6b3c1f41b885773df633cb18d2a3002b68e4bc9c4
2325
Content-Transfer-Encoding: quoted-printable
2426
Content-Type: text/html; charset=UTF-8

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ MIME-Version: 1.0
1010
Content-Transfer-Encoding: quoted-printable
1111
Content-Type: text/plain; charset=UTF-8
1212

13+
Hi Bobby,
1314
Your workspace bobby-workspace has been marked as dormant (https://coder.co=
1415
m/docs/templates/schedule#dormancy-threshold-enterprise) because of breache=
1516
d the template's threshold for inactivity.
@@ -21,6 +22,7 @@ To prevent deletion, use your workspace with the link below.
2122

2223
View workspace: http://test.com/@bobby/bobby-workspace
2324

25+
2426
--bbe61b741255b6098bb6b3c1f41b885773df633cb18d2a3002b68e4bc9c4
2527
Content-Transfer-Encoding: quoted-printable
2628
Content-Type: text/html; charset=UTF-8

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ MIME-Version: 1.0
1010
Content-Transfer-Encoding: quoted-printable
1111
Content-Type: text/plain; charset=UTF-8
1212

13+
Hi Bobby,
1314
A manual build of the workspace bobby-workspace using the template bobby-te=
1415
mplate failed (version: bobby-template-version).
1516
The workspace build was initiated by joe.
1617

1718

1819
View build: http://test.com/@mrbobby/bobby-workspace/builds/3
1920

21+
2022
--bbe61b741255b6098bb6b3c1f41b885773df633cb18d2a3002b68e4bc9c4
2123
Content-Transfer-Encoding: quoted-printable
2224
Content-Type: text/html; charset=UTF-8

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ MIME-Version: 1.0
1010
Content-Transfer-Encoding: quoted-printable
1111
Content-Type: text/plain; charset=UTF-8
1212

13+
Hi Bobby,
1314
A new workspace build has been manually created for your workspace bobby-wo=
1415
rkspace by bobby to update it to version alpha of template bobby-template.
1516

@@ -19,6 +20,7 @@ View workspace: http://test.com/@bobby/bobby-workspace
1920
View template version: http://test.com/templates/bobby-organization/bobby-t=
2021
emplate/versions/alpha
2122

23+
2224
--bbe61b741255b6098bb6b3c1f41b885773df633cb18d2a3002b68e4bc9c4
2325
Content-Transfer-Encoding: quoted-printable
2426
Content-Type: text/html; charset=UTF-8

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ MIME-Version: 1.0
1010
Content-Transfer-Encoding: quoted-printable
1111
Content-Type: text/plain; charset=UTF-8
1212

13+
Hi Bobby,
1314
Your workspace bobby-workspace has been marked for deletion after 24 hours =
1415
of dormancy (https://coder.com/docs/templates/schedule#dormancy-auto-deleti=
1516
on-enterprise) because of template updated to new dormancy policy.
@@ -18,6 +19,7 @@ To prevent deletion, use your workspace with the link below.
1819

1920
View workspace: http://test.com/@bobby/bobby-workspace
2021

22+
2123
--bbe61b741255b6098bb6b3c1f41b885773df633cb18d2a3002b68e4bc9c4
2224
Content-Transfer-Encoding: quoted-printable
2325
Content-Type: text/html; charset=UTF-8

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ MIME-Version: 1.0
1010
Content-Transfer-Encoding: quoted-printable
1111
Content-Type: text/plain; charset=UTF-8
1212

13+
Hi Bobby,
1314
Volume /home/coder is over 90% full in workspace bobby-workspace.
1415

1516

1617
View workspace: http://test.com/@bobby/bobby-workspace
1718

19+
1820
--bbe61b741255b6098bb6b3c1f41b885773df633cb18d2a3002b68e4bc9c4
1921
Content-Transfer-Encoding: quoted-printable
2022
Content-Type: text/html; charset=UTF-8

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ MIME-Version: 1.0
1010
Content-Transfer-Encoding: quoted-printable
1111
Content-Type: text/plain; charset=UTF-8
1212

13+
Hi Bobby,
1314
The following volumes are nearly full in workspace bobby-workspace
1415

1516
/home/coder is over 90% full
@@ -19,6 +20,7 @@ The following volumes are nearly full in workspace bobby-workspace
1920

2021
View workspace: http://test.com/@bobby/bobby-workspace
2122

23+
2224
--bbe61b741255b6098bb6b3c1f41b885773df633cb18d2a3002b68e4bc9c4
2325
Content-Transfer-Encoding: quoted-printable
2426
Content-Type: text/html; charset=UTF-8

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ MIME-Version: 1.0
1010
Content-Transfer-Encoding: quoted-printable
1111
Content-Type: text/plain; charset=UTF-8
1212

13+
Hi Bobby,
1314
Your workspace bobby-workspace has reached the memory usage threshold set a=
1415
t 90%.
1516

1617

1718
View workspace: http://test.com/@bobby/bobby-workspace
1819

20+
1921
--bbe61b741255b6098bb6b3c1f41b885773df633cb18d2a3002b68e4bc9c4
2022
Content-Transfer-Encoding: quoted-printable
2123
Content-Type: text/html; charset=UTF-8

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ MIME-Version: 1.0
1010
Content-Transfer-Encoding: quoted-printable
1111
Content-Type: text/plain; charset=UTF-8
1212

13+
Hi Bobby,
1314
Your account bobby has been activated by rob.
1415

1516

1617
Open Coder: http://test.com
1718

19+
1820
--bbe61b741255b6098bb6b3c1f41b885773df633cb18d2a3002b68e4bc9c4
1921
Content-Transfer-Encoding: quoted-printable
2022
Content-Type: text/html; charset=UTF-8

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ MIME-Version: 1.0
1010
Content-Transfer-Encoding: quoted-printable
1111
Content-Type: text/plain; charset=UTF-8
1212

13+
Hi Bobby,
1314
Your account bobby has been suspended by rob.
1415

1516

17+
1618
--bbe61b741255b6098bb6b3c1f41b885773df633cb18d2a3002b68e4bc9c4
1719
Content-Transfer-Encoding: quoted-printable
1820
Content-Type: text/html; charset=UTF-8

0 commit comments

Comments
 (0)