Merge pull request #3540 from jzinkweg/feature/incident-update-mail

Include incident update message in mail notification
This commit is contained in:
James Brooks
2019-04-12 21:06:47 +01:00
committed by GitHub
2 changed files with 7 additions and 2 deletions

View File

@@ -78,6 +78,7 @@ class IncidentUpdatedNotification extends Notification
->subject(trans('notifications.incident.update.mail.subject'))
->markdown('notifications.incident.update', [
'incident' => $this->update->incident,
'update' => $this->update,
'content' => $content,
'actionText' => trans('notifications.incident.new.mail.action'),
'actionUrl' => cachet_route('incident', [$this->update->incident]),

View File

@@ -1,11 +1,15 @@
@component('mail::message')
# {{ trans('notifications.incident.update.mail.title', ['name' => $incidentName, 'new_status' => $newStatus]) }}
{{ $content }}
{{ $update->message }}
@component('mail::button', ['url' => $actionUrl])
{{ $actionText }}
@endcomponent
Thanks,<br>
{{ Config::get('setting.app_name') }}
@include('notifications.partials.subscription')
@endcomponent
@endcomponent