mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
This PR closes #15065. As advised by @mtojek, a template's display name may be set to "", which is not useful in an email notification. We'd like to provide a friendly name for the template, but it also needs to be identifiable. As such, we fall back to template.Name in the case that the template's display name is empty.
28 lines
886 B
Plaintext
28 lines
886 B
Plaintext
{
|
|
"_version": "1.1",
|
|
"msg_id": "00000000-0000-0000-0000-000000000000",
|
|
"payload": {
|
|
"_version": "1.1",
|
|
"notification_name": "Template Deleted",
|
|
"notification_template_id": "00000000-0000-0000-0000-000000000000",
|
|
"user_id": "00000000-0000-0000-0000-000000000000",
|
|
"user_email": "bobby@coder.com",
|
|
"user_name": "Bobby",
|
|
"user_username": "bobby",
|
|
"actions": [
|
|
{
|
|
"label": "View templates",
|
|
"url": "http://test.com/templates"
|
|
}
|
|
],
|
|
"labels": {
|
|
"initiator": "rob",
|
|
"name": "Bobby's Template"
|
|
},
|
|
"data": null
|
|
},
|
|
"title": "Template \"Bobby's Template\" deleted",
|
|
"title_markdown": "Template \"Bobby's Template\" deleted",
|
|
"body": "Hi Bobby,\n\nThe template Bobby's Template was deleted by rob.",
|
|
"body_markdown": "Hi Bobby,\n\nThe template **Bobby's Template** was deleted by **rob**.\n\n"
|
|
} |