From dbfcff840ac889de52a32f1e9010544eb28c63c9 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 27 Jul 2019 00:11:16 -0600 Subject: [PATCH] Update 503 and 404 view, allow custom text --- config/instance.php | 4 ++++ resources/views/errors/404.blade.php | 4 ++-- resources/views/errors/503.blade.php | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/config/instance.php b/config/instance.php index f1945234..a5954246 100644 --- a/config/instance.php +++ b/config/instance.php @@ -30,6 +30,10 @@ return [ ], '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. Go back to Pixelfed.') + ], '503' => [ 'header' => env('PAGE_503_HEADER', 'Service Unavailable'), 'body' => env('PAGE_503_BODY', 'Our service is in maintenance mode, please try again later.') diff --git a/resources/views/errors/404.blade.php b/resources/views/errors/404.blade.php index 68094ba2..9edb32b9 100644 --- a/resources/views/errors/404.blade.php +++ b/resources/views/errors/404.blade.php @@ -3,8 +3,8 @@ @section('content')
-

Sorry, this page isn't available.

-

The link you followed may be broken, or the page may have been removed. Go back to Pixelfed.

+

{!!config('instance.page.404.header')!!}

+

{!!config('instance.page.404.body')!!}

@endsection diff --git a/resources/views/errors/503.blade.php b/resources/views/errors/503.blade.php index 592962b0..cf69427a 100644 --- a/resources/views/errors/503.blade.php +++ b/resources/views/errors/503.blade.php @@ -3,8 +3,8 @@ @section('content')
-

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

-

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

+

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

+

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

@endsection