From 223ee74c801ec1f3d035b22195b1afb7c997799f Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 27 Jul 2019 00:05:41 -0600 Subject: [PATCH] Update 503 view, allow custom text --- config/instance.php | 6 ++++++ resources/views/errors/503.blade.php | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/config/instance.php b/config/instance.php index 82a8efafc..f19452348 100644 --- a/config/instance.php +++ b/config/instance.php @@ -29,5 +29,11 @@ return [ ] ], + 'page' => [ + '503' => [ + 'header' => env('PAGE_503_HEADER', 'Service Unavailable'), + 'body' => env('PAGE_503_BODY', 'Our service is in maintenance mode, please try again later.') + ] + ], ]; \ No newline at end of file diff --git a/resources/views/errors/503.blade.php b/resources/views/errors/503.blade.php index 5f2c20583..592962b0f 100644 --- a/resources/views/errors/503.blade.php +++ b/resources/views/errors/503.blade.php @@ -3,8 +3,8 @@ @section('content')
-

Service Unavailable

-

Our service is in maintenance mode, please try again later. Go back to Pixelfed.

+

{{config('instance.page.503.header')}}

+

{{config('instance.page.503.body')}}

@endsection