Show a different message when subscribers are disabled

This commit is contained in:
James Brooks
2017-08-27 11:34:22 +01:00
parent 197493b9d7
commit 057e4d5393
2 changed files with 16 additions and 9 deletions
+9 -8
View File
@@ -147,14 +147,15 @@ return [
], ],
// Subscribers // Subscribers
'subscribers' => [ 'subscribers' => [
'subscribers' => 'Subscribers', 'subscribers' => 'Subscribers',
'description' => 'Subscribers will receive email updates when incidents are created or components are updated.', 'description' => 'Subscribers will receive email updates when incidents are created or components are updated.',
'verified' => 'Verified', 'description_disabled' => 'To use this feature, you need allow people to signup for notifications.',
'not_verified' => 'Not verified', 'verified' => 'Verified',
'subscriber' => ':email, subscribed :date', 'not_verified' => 'Not verified',
'no_subscriptions' => 'Subscribed to all updates', 'subscriber' => ':email, subscribed :date',
'global' => 'Globally subscribed', 'no_subscriptions' => 'Subscribed to all updates',
'add' => [ 'global' => 'Globally subscribed',
'add' => [
'title' => 'Add a new subscriber', 'title' => 'Add a new subscriber',
'success' => 'Subscriber has been added!', 'success' => 'Subscriber has been added!',
'failure' => 'Something went wrong adding the subscriber, please try again.', 'failure' => 'Something went wrong adding the subscriber, please try again.',
@@ -18,7 +18,13 @@
<div class="content-wrapper header-fixed"> <div class="content-wrapper header-fixed">
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
<p class="lead">{{ trans('dashboard.subscribers.description') }}</p> <p class="lead">
@if($enable_subscribers)
{{ trans('dashboard.subscribers.description') }}
@else
{{ trans('dashboard.subscribers.description_disabled') }}
@endif
</p>
<div class="striped-list"> <div class="striped-list">
@foreach($subscribers as $subscriber) @foreach($subscribers as $subscriber)