Merge pull request #11136 from snipe/fixes/new_maintenance_page

Fixed #11124 - updated maintenance page
This commit is contained in:
snipe 2022-05-17 19:03:54 -07:00 committed by GitHub
commit 3e34027ae0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 21 deletions

View file

@ -354,4 +354,6 @@ return [
'checkout_tooltip' => 'Check this item out', 'checkout_tooltip' => 'Check this item out',
'checkin_tooltip' => 'Check this item in', 'checkin_tooltip' => 'Check this item in',
'checkout_user_tooltip' => 'Check this item out to a user', 'checkout_user_tooltip' => 'Check this item out to a user',
'maintenance_mode' => 'The service is temporarily unavailable for system updates. Please check back later.',
'maintenance_mode_title' => 'System Temporarily Unavilable',
]; ];

View file

@ -2,7 +2,7 @@
{{-- Page title --}} {{-- Page title --}}
@section('title') @section('title')
System Unavailable {{ trans('general.maintenance_mode_title') }}
@parent @parent
@stop @stop
@ -11,35 +11,34 @@ System Unavailable
@section('content') @section('content')
<style>
p {
font-size: 16px;
}
h3 { <div class="container">
padding-bottom: 10px;
}
</style>
<div class="row"> <div class="row">
<div class="col-md-9 col-md-offset-1"> <div class="col-md-9 col-md-offset-1">
<div class="box box-warning">
<div class="box-header with-border">
<h1 class="box-title">
<i class="fas fa-exclamation-triangle text-orange" aria-hidden="true"></i>
{{ trans('general.maintenance_mode_title') }}
</h1>
</div><!-- /.box-header -->
<div class="box-body">
<div class="col-md-12">
<div class="col-md-2"> <div class="col-md-2">
<img src="{{ url('/') }}/img/sad-panda.png" class="pull-right" style="width: 140px; height: 140px;"> <img src="{{ url('/') }}/img/sad-panda.png" class="pull-right" style="width: 140px; height: 140px;">
</div> </div>
<div class="col-md-10"> <div class="alert alert-warning fade in">
<div class="callout callout-danger"> <h2> {{ trans('general.maintenance_mode') }}</h2>
<h2><i class="icon fas fa-exclamation-triangle"></i> System Unavailable</h2>
<p>{!! json_decode(file_get_contents(storage_path('framework/down')), true)['message'] !!}</p>
</div>
</div> </div>
</div> <!-- /.div -->
</div><!-- /.box-body -->
</div> </div>
</div> </div>
@stop @stop