Merge pull request #3540 from jzinkweg/feature/incident-update-mail
Include incident update message in mail notification
This commit is contained in:
@@ -78,6 +78,7 @@ class IncidentUpdatedNotification extends Notification
|
|||||||
->subject(trans('notifications.incident.update.mail.subject'))
|
->subject(trans('notifications.incident.update.mail.subject'))
|
||||||
->markdown('notifications.incident.update', [
|
->markdown('notifications.incident.update', [
|
||||||
'incident' => $this->update->incident,
|
'incident' => $this->update->incident,
|
||||||
|
'update' => $this->update,
|
||||||
'content' => $content,
|
'content' => $content,
|
||||||
'actionText' => trans('notifications.incident.new.mail.action'),
|
'actionText' => trans('notifications.incident.new.mail.action'),
|
||||||
'actionUrl' => cachet_route('incident', [$this->update->incident]),
|
'actionUrl' => cachet_route('incident', [$this->update->incident]),
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
@component('mail::message')
|
@component('mail::message')
|
||||||
# {{ trans('notifications.incident.update.mail.title', ['name' => $incidentName, 'new_status' => $newStatus]) }}
|
# {{ trans('notifications.incident.update.mail.title', ['name' => $incidentName, 'new_status' => $newStatus]) }}
|
||||||
|
|
||||||
{{ $content }}
|
{{ $update->message }}
|
||||||
|
|
||||||
|
@component('mail::button', ['url' => $actionUrl])
|
||||||
|
{{ $actionText }}
|
||||||
|
@endcomponent
|
||||||
|
|
||||||
Thanks,<br>
|
Thanks,<br>
|
||||||
{{ Config::get('setting.app_name') }}
|
{{ Config::get('setting.app_name') }}
|
||||||
|
|||||||
Reference in New Issue
Block a user