Translated maintenance page

This commit is contained in:
Julian Prieber 2023-06-13 17:37:20 +02:00
parent d3ce5b13d5
commit 65c07c2c66
2 changed files with 15 additions and 6 deletions

View File

@ -527,6 +527,15 @@ return [
'Finish setup' => 'Finish setup+',
########Maintenance Page########
'Maintenance Mode' => 'Maintenance Mode+',
'We are performing scheduled site maintenance at this time' => 'We are performing scheduled site maintenance at this time.+',
'Please check back with us later' => 'Please check back with us later.+',
'Admin options:' => 'Admin options:+',
'Turn off' => 'Turn off+',
'Warn.Disable.Maintenance' => 'You are about to disable Maintenance Mode. Are you sure?+',
'' => '+',
];
];

View File

@ -90,12 +90,12 @@ body {
@endif
<div style="padding-bottom:5%;">
<h1 style="font-size: 300%;"><i class="fa-solid fa-screwdriver-wrench"></i> Maintenance Mode <i class="fa-solid fa-screwdriver-wrench"></i></h1>
<h2>We are performing scheduled site maintenance at this time.</h2>
<h3>Please check back with us later.</h3>
<h1 style="font-size: 300%;"><i class="fa-solid fa-screwdriver-wrench"></i> {{__('messages.Maintenance Mode')}} <i class="fa-solid fa-screwdriver-wrench"></i></h1>
<h2>{{__('messages.We are performing scheduled site maintenance at this time')}}</h2>
<h3>{{__('messages.Please check back with us later')}}</h3>
@if(auth()->user() && auth()->user()->role == 'admin')
<br><center><i>Admin options:</i></center>
<a href="{{url('dashboard')}}">Dashboard</a> | <a href="{{url('?maintenance=off')}}" onclick="return confirm('You are about to disable Maintenance Mode. Are you sure?');">Turn off</a>
<br><center><i>{{__('messages.Admin options:')}}</i></center>
<a href="{{url('dashboard')}}">{{__('messages.Dashboard')}}</a> | <a href="{{url('?maintenance=off')}}" onclick="return confirm('{{__('messages.Warn.Disable.Maintenance')}}');">{{__('messages.Turn off')}}</a>
@endif
</div>