mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-28 21:22:30 +00:00
Extracted not found text into its own simple blade file
Related/intended for #2796
This commit is contained in:
parent
b5caaa73b7
commit
58117bcf2d
@ -6,9 +6,11 @@
|
|||||||
<div class="card mb-xl px-l pb-l pt-l">
|
<div class="card mb-xl px-l pb-l pt-l">
|
||||||
<div class="grid half v-center">
|
<div class="grid half v-center">
|
||||||
<div>
|
<div>
|
||||||
<h1 class="list-heading">{{ $message ?? trans('errors.404_page_not_found') }}</h1>
|
@include('errors.parts.not-found-text', [
|
||||||
<h5>{{ $subtitle ?? trans('errors.sorry_page_not_found') }}</h5>
|
'title' => $message ?? trans('errors.404_page_not_found'),
|
||||||
<p>{{ $details ?? trans('errors.sorry_page_not_found_permission_warning') }}</p>
|
'subtitle' => $subtitle ?? trans('errors.sorry_page_not_found'),
|
||||||
|
'details' => $details ?? trans('errors.sorry_page_not_found_permission_warning'),
|
||||||
|
])
|
||||||
</div>
|
</div>
|
||||||
<div class="text-right">
|
<div class="text-right">
|
||||||
@if(!signedInUser())
|
@if(!signedInUser())
|
||||||
|
5
resources/views/errors/parts/not-found-text.blade.php
Normal file
5
resources/views/errors/parts/not-found-text.blade.php
Normal file
@ -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.--}}
|
||||||
|
<h1 class="list-heading">{{ $title }}</h1>
|
||||||
|
<h5>{{ $subtitle }}</h5>
|
||||||
|
<p>{{ $details }}</p>
|
Loading…
Reference in New Issue
Block a user