Skip to content

Commit

Permalink
Remove references to component in the Maintenance emails. Fixes #2153
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrooksuk committed Oct 8, 2016
1 parent 4f807e6 commit dfeab93
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ public function notify(MaintenanceWasScheduledEvent $event, $subscriber)
'subject' => trans('cachet.subscriber.email.maintenance.subject', [
'name' => $incident->name,
]),
'has_component' => ($event->incident->component) ? true : false,
'component_name' => $component ? $component->name : null,
'name' => $incident->name,
'timestamp' => $incident->scheduled_at_formatted,
'status' => $incident->human_status,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<tr>
<td>
<p class="compressed">
<strong>{!! $status !!} @if($has_component) ({{ $component_name }}) @endif</strong>
<strong>{!! $status !!}</strong>
{!! $html_content !!}
{!! $timestamp !!}
</p>
Expand Down
3 changes: 0 additions & 3 deletions resources/views/emails/incidents/maintenance-text.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
{!! $text_content !!}
{!! $timestamp !!}

@if($has_component)
({{ $component_name }})
@endif
{!! trans('cachet.subscriber.email.manage') !!} {{ $manage_link }}

{!! trans('cachet.subscriber.email.unsubscribe') !!} {{ $unsubscribe_link }}
Expand Down

0 comments on commit dfeab93

Please sign in to comment.