Show an alert when ./bootstrap/cachet is not writeable.
This commit is contained in:
@@ -40,5 +40,6 @@ class DashboardComposer
|
||||
$view->withIncidentTemplateCount(IncidentTemplate::count());
|
||||
$view->withScheduleCount(Schedule::count());
|
||||
$view->withSubscriberCount(Subscriber::isVerified()->count());
|
||||
$view->withIsWriteable(is_writeable(app()->bootstrapPath().'/cachet'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
return [
|
||||
|
||||
'dashboard' => 'Dashboard',
|
||||
'writeable_settings' => 'The Cachet settings directory is not writeable. Please make sure that <code>./bootstrap/cachet</code> is writeable by the web server.',
|
||||
|
||||
// Incidents
|
||||
'incidents' => [
|
||||
|
||||
@@ -41,6 +41,18 @@
|
||||
<div class="wrapper">
|
||||
@include('dashboard.partials.sidebar')
|
||||
<div class="page-content">
|
||||
@if(!$is_writeable)
|
||||
<div class="content-wrapper">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="alert alert-info">
|
||||
{!! trans('dashboard.writeable_settings') !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@yield('content')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user