mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00:00
fix(coderd/notifications): exclude unset fields from notifications (#15110)
This PR will ensure that optional fields are ignored when they are unset in user account related templates.
This commit is contained in:
@ -14,8 +14,7 @@ Hi Bobby,
|
||||
|
||||
User account bobby has been activated.
|
||||
|
||||
The newly activated account belongs to William Tables and was activated by =
|
||||
rob.
|
||||
The account belongs to William Tables and it was activated by rob.
|
||||
|
||||
|
||||
View accounts: http://test.com/deployment/users?filter=3Dstatus%3Aactive
|
||||
@ -52,8 +51,8 @@ argin: 8px 0 32px; line-height: 1.5;">
|
||||
|
||||
<p>User account <strong>bobby</strong> has been activated.</p>
|
||||
|
||||
<p>The newly activated account belongs to <strong>William Tables</strong> a=
|
||||
nd was activated by <strong>rob</strong>.</p>
|
||||
<p>The account belongs to <strong>William Tables</strong> and it was activa=
|
||||
ted by <strong>rob</strong>.</p>
|
||||
</div>
|
||||
<div style=3D"text-align: center; margin-top: 32px;">
|
||||
=20
|
||||
|
@ -14,8 +14,7 @@ Hi Bobby,
|
||||
|
||||
User account bobby has been suspended.
|
||||
|
||||
The newly suspended account belongs to William Tables and was suspended by =
|
||||
rob.
|
||||
The account belongs to William Tables and it was suspended by rob.
|
||||
|
||||
|
||||
View suspended accounts: http://test.com/deployment/users?filter=3Dstatus%3=
|
||||
@ -53,8 +52,8 @@ argin: 8px 0 32px; line-height: 1.5;">
|
||||
|
||||
<p>User account <strong>bobby</strong> has been suspended.</p>
|
||||
|
||||
<p>The newly suspended account belongs to <strong>William Tables</strong> a=
|
||||
nd was suspended by <strong>rob</strong>.</p>
|
||||
<p>The account belongs to <strong>William Tables</strong> and it was suspen=
|
||||
ded by <strong>rob</strong>.</p>
|
||||
</div>
|
||||
<div style=3D"text-align: center; margin-top: 32px;">
|
||||
=20
|
||||
|
@ -24,6 +24,6 @@
|
||||
},
|
||||
"title": "User account \"bobby\" activated",
|
||||
"title_markdown": "User account \"bobby\" activated",
|
||||
"body": "Hi Bobby,\n\nUser account bobby has been activated.\n\nThe newly activated account belongs to William Tables and was activated by rob.",
|
||||
"body_markdown": "Hi Bobby,\n\nUser account **bobby** has been activated.\n\nThe newly activated account belongs to **William Tables** and was activated by **rob**."
|
||||
"body": "Hi Bobby,\n\nUser account bobby has been activated.\n\nThe account belongs to William Tables and it was activated by rob.",
|
||||
"body_markdown": "Hi Bobby,\n\nUser account **bobby** has been activated.\n\nThe account belongs to **William Tables** and it was activated by **rob**."
|
||||
}
|
@ -24,6 +24,6 @@
|
||||
},
|
||||
"title": "User account \"bobby\" suspended",
|
||||
"title_markdown": "User account \"bobby\" suspended",
|
||||
"body": "Hi Bobby,\n\nUser account bobby has been suspended.\n\nThe newly suspended account belongs to William Tables and was suspended by rob.",
|
||||
"body_markdown": "Hi Bobby,\n\nUser account **bobby** has been suspended.\n\nThe newly suspended account belongs to **William Tables** and was suspended by **rob**."
|
||||
"body": "Hi Bobby,\n\nUser account bobby has been suspended.\n\nThe account belongs to William Tables and it was suspended by rob.",
|
||||
"body_markdown": "Hi Bobby,\n\nUser account **bobby** has been suspended.\n\nThe account belongs to **William Tables** and it was suspended by **rob**."
|
||||
}
|
Reference in New Issue
Block a user