From 58117bcf2d91b72620de3e34b0daa705da519f5e Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Sun, 13 Jun 2021 13:53:59 +0100 Subject: [PATCH] Extracted not found text into its own simple blade file Related/intended for #2796 --- resources/views/errors/404.blade.php | 8 +++++--- resources/views/errors/parts/not-found-text.blade.php | 5 +++++ 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 resources/views/errors/parts/not-found-text.blade.php diff --git a/resources/views/errors/404.blade.php b/resources/views/errors/404.blade.php index d4d8ed76b..c4a5dc782 100644 --- a/resources/views/errors/404.blade.php +++ b/resources/views/errors/404.blade.php @@ -6,9 +6,11 @@
-

{{ $message ?? trans('errors.404_page_not_found') }}

-
{{ $subtitle ?? trans('errors.sorry_page_not_found') }}
-

{{ $details ?? trans('errors.sorry_page_not_found_permission_warning') }}

+ @include('errors.parts.not-found-text', [ + 'title' => $message ?? trans('errors.404_page_not_found'), + 'subtitle' => $subtitle ?? trans('errors.sorry_page_not_found'), + 'details' => $details ?? trans('errors.sorry_page_not_found_permission_warning'), + ])
@if(!signedInUser()) diff --git a/resources/views/errors/parts/not-found-text.blade.php b/resources/views/errors/parts/not-found-text.blade.php new file mode 100644 index 000000000..5b107b29b --- /dev/null +++ b/resources/views/errors/parts/not-found-text.blade.php @@ -0,0 +1,5 @@ +{{--The below text may be dynamic based upon language and scenario.--}} +{{--It's safer to add new text sections here rather than altering existing ones.--}} +

{{ $title }}

+
{{ $subtitle }}
+

{{ $details }}

\ No newline at end of file