Merge pull request #3423 from AntonioKL/patching-manage-subscribtion
Patching manage subscription
This commit is contained in:
@@ -52,10 +52,6 @@ class SubscribersConfigured
|
|||||||
*/
|
*/
|
||||||
public function handle(Request $request, Closure $next)
|
public function handle(Request $request, Closure $next)
|
||||||
{
|
{
|
||||||
if (!$this->config->get('setting.enable_subscribers')) {
|
|
||||||
return cachet_redirect('status-page');
|
|
||||||
}
|
|
||||||
|
|
||||||
return $next($request);
|
return $next($request);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ class ComponentStatusChangedNotification extends Notification
|
|||||||
|
|
||||||
return (new SlackMessage())
|
return (new SlackMessage())
|
||||||
->$status()
|
->$status()
|
||||||
->content(trans('notifications.component.status_update.slack.subject'))
|
->content(trans('notifications.component.status_update.slack.title'))
|
||||||
->attachment(function ($attachment) use ($content, $notifiable) {
|
->attachment(function ($attachment) use ($content, $notifiable) {
|
||||||
$attachment->title($content, cachet_route('status-page'))
|
$attachment->title($content, cachet_route('status-page'))
|
||||||
->fields(array_filter([
|
->fields(array_filter([
|
||||||
|
|||||||
@@ -133,8 +133,7 @@ class NewIncidentNotification extends Notification
|
|||||||
->fields(array_filter([
|
->fields(array_filter([
|
||||||
'ID' => "#{$this->incident->id}",
|
'ID' => "#{$this->incident->id}",
|
||||||
'Link' => $this->incident->permalink,
|
'Link' => $this->incident->permalink,
|
||||||
]))
|
]));
|
||||||
->footer(trans('cachet.subscriber.unsubscribe', ['link' => cachet_route('subscribe.unsubscribe', $notifiable->verify_code)]));
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -124,8 +124,7 @@ class NewScheduleNotification extends Notification implements ShouldQueue
|
|||||||
->fields(array_filter([
|
->fields(array_filter([
|
||||||
'ID' => "#{$this->schedule->id}",
|
'ID' => "#{$this->schedule->id}",
|
||||||
'Status' => $this->schedule->human_status,
|
'Status' => $this->schedule->human_status,
|
||||||
]))
|
]));
|
||||||
->footer(trans('cachet.subscriber.unsubscribe', ['link' => cachet_route('subscribe.unsubscribe', $notifiable->verify_code)]));
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<span class="uppercase">
|
<span class="uppercase">
|
||||||
<i class="ion ion-ios-email-outline"></i> {{ trans('dashboard.subscribers.subscribers') }}
|
<i class="ion ion-ios-email-outline"></i> {{ trans('dashboard.subscribers.subscribers') }}
|
||||||
</span>
|
</span>
|
||||||
@if($currentUser->isAdmin && $enableSubscribers)
|
@if($currentUser->isAdmin)
|
||||||
<a class="btn btn-md btn-success pull-right" href="{{ cachet_route('dashboard.subscribers.create') }}">
|
<a class="btn btn-md btn-success pull-right" href="{{ cachet_route('dashboard.subscribers.create') }}">
|
||||||
{{ trans('dashboard.subscribers.add.title') }}
|
{{ trans('dashboard.subscribers.add.title') }}
|
||||||
</a>
|
</a>
|
||||||
@@ -19,11 +19,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-12">
|
<div class="col-sm-12">
|
||||||
<p class="lead">
|
<p class="lead">
|
||||||
@if($enableSubscribers)
|
|
||||||
{{ trans('dashboard.subscribers.description') }}
|
{{ trans('dashboard.subscribers.description') }}
|
||||||
@else
|
|
||||||
{{ trans('dashboard.subscribers.description_disabled') }}
|
|
||||||
@endif
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="striped-list">
|
<div class="striped-list">
|
||||||
@@ -51,6 +47,7 @@
|
|||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-3 text-right">
|
<div class="col-xs-3 text-right">
|
||||||
|
<a href="{{ cachet_route('subscribe.manage', $subscriber->verify_code) }}" target="_blank" class="btn btn-success">{{ trans('forms.edit') }}</a>
|
||||||
<a href="{{ cachet_route('dashboard.subscribers.delete', [$subscriber->id], 'delete') }}" class="btn btn-danger confirm-action" data-method='DELETE'>{{ trans('forms.delete') }}</a>
|
<a href="{{ cachet_route('dashboard.subscribers.delete', [$subscriber->id], 'delete') }}" class="btn btn-danger confirm-action" data-method='DELETE'>{{ trans('forms.delete') }}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user