Merge pull request #2890 from uxen-ab/subscriber-not-able-to-change-his-subscriptions-2887
Adds a line in the notification email to manage its subscriptions.
This commit is contained in:
@@ -88,7 +88,8 @@ class ComponentStatusChangedNotification extends Notification
|
||||
->greeting(trans('notifications.component.status_update.mail.subject'))
|
||||
->line($content)
|
||||
->action(trans('notifications.component.status_update.mail.action'), cachet_route('status-page'))
|
||||
->line(trans('cachet.subscriber.unsubscribe', ['link' => cachet_route('subscribe.unsubscribe', $notifiable->verify_code)]));
|
||||
->line(trans('cachet.subscriber.unsubscribe', ['link' => cachet_route('subscribe.unsubscribe', $notifiable->verify_code)]))
|
||||
->line(trans('cachet.subscriber.manage.manage_at_link', ['link' => cachet_route('subscribe.manage', $notifiable->verify_code)]));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -79,7 +79,8 @@ class NewIncidentNotification extends Notification
|
||||
->line($content)
|
||||
->action(trans('notifications.incident.new.mail.action'), cachet_route('incident', [$this->incident]))
|
||||
->markdown($this->incident->message)
|
||||
->line(trans('cachet.subscriber.unsubscribe', ['link' => cachet_route('subscribe.unsubscribe', $notifiable->verify_code)]));
|
||||
->line(trans('cachet.subscriber.unsubscribe', ['link' => cachet_route('subscribe.unsubscribe', $notifiable->verify_code)]))
|
||||
->line(trans('cachet.subscriber.manage.manage_at_link', ['link' => cachet_route('subscribe.manage', $notifiable->verify_code)]));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -83,7 +83,9 @@ class IncidentUpdatedNotification extends Notification
|
||||
->line($content)
|
||||
->action(trans('notifications.incident.update.mail.action'), cachet_route('incident', [$this->update->incident]))
|
||||
->markdown($this->update->message)
|
||||
->line(trans('cachet.subscriber.unsubscribe', ['link' => cachet_route('subscribe.unsubscribe', $notifiable->verify_code)]));
|
||||
->line(trans('cachet.subscriber.unsubscribe', ['link' => cachet_route('subscribe.unsubscribe', $notifiable->verify_code)]))
|
||||
->line(trans('cachet.subscriber.manage.manage_at_link', ['link' => cachet_route('subscribe.manage', $notifiable->verify_code)]));
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -81,6 +81,7 @@ return [
|
||||
'manage' => [
|
||||
'no_subscriptions' => 'You\'re currently subscribed to all updates.',
|
||||
'my_subscriptions' => 'You\'re currently subscribed to the following updates.',
|
||||
'manage_at_link' => 'Manage your subscriptions at :link'
|
||||
],
|
||||
'email' => [
|
||||
'subscribe' => 'Subscribe to email updates.',
|
||||
|
||||
Reference in New Issue
Block a user