Add the component name to incident emails, if applicable. Closes #794

This commit is contained in:
James Brooks
2015-08-13 23:02:33 +01:00
parent 0194dbb634
commit 808bc5201d
3 changed files with 7 additions and 0 deletions

View File

@@ -69,6 +69,7 @@ class SendIncidentEmailNotificationHandler
$mail = [
'email' => $subscriber->email,
'subject' => 'New incident reported.',
'incident' => $event->incident,
'status' => $data->humanStatus,
'htmlContent' => $data->formattedMessage,
'textContent' => $data->message,

View File

@@ -9,6 +9,9 @@
<p>
{!! $status !!}
@if($incident->component)
({{ $incident->component->name }})
@endif
</p>
<p>

View File

@@ -1,6 +1,9 @@
{!! trans('cachet.subscriber.email.incident.text', ['app_name' => Setting::get('app_name')]) !!}
{!! $status !!}
@if($incident->component)
({{ $incident->component->name }})
@endif
{!! $textContent !!}