mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Update 503 and 404 view, allow custom text
This commit is contained in:
parent
223ee74c80
commit
dbfcff840a
3 changed files with 8 additions and 4 deletions
|
@ -30,6 +30,10 @@ return [
|
||||||
],
|
],
|
||||||
|
|
||||||
'page' => [
|
'page' => [
|
||||||
|
'404' => [
|
||||||
|
'header' => env('PAGE_404_HEADER', 'Sorry, this page isn\'t available.'),
|
||||||
|
'body' => env('PAGE_404_BODY', 'The link you followed may be broken, or the page may have been removed. <a href="/">Go back to Pixelfed.</a>')
|
||||||
|
],
|
||||||
'503' => [
|
'503' => [
|
||||||
'header' => env('PAGE_503_HEADER', 'Service Unavailable'),
|
'header' => env('PAGE_503_HEADER', 'Service Unavailable'),
|
||||||
'body' => env('PAGE_503_BODY', 'Our service is in maintenance mode, please try again later.')
|
'body' => env('PAGE_503_BODY', 'Our service is in maintenance mode, please try again later.')
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="error-page py-5 my-5 text-center">
|
<div class="error-page py-5 my-5 text-center">
|
||||||
<h3 class="font-weight-bold">Sorry, this page isn't available.</h3>
|
<h3 class="font-weight-bold">{!!config('instance.page.404.header')!!}</h3>
|
||||||
<p class="lead">The link you followed may be broken, or the page may have been removed. <a href="/">Go back to Pixelfed.</a></p>
|
<p class="lead">{!!config('instance.page.404.body')!!}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="error-page py-5 my-5 text-center">
|
<div class="error-page py-5 my-5 text-center">
|
||||||
<h3 class="font-weight-bold">{{config('instance.page.503.header')}}</h3>
|
<h3 class="font-weight-bold">{!!config('instance.page.503.header')!!}</h3>
|
||||||
<p class="lead">{{config('instance.page.503.body')}}</p>
|
<p class="lead">{!!config('instance.page.503.body')!!}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
Loading…
Reference in a new issue