X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/144eb69cad245734610e0efb6341b0bade78cacc..refs/pull/3918/head:/resources/views/errors/404.blade.php
diff --git a/resources/views/errors/404.blade.php b/resources/views/errors/404.blade.php
index 8f66e2d01..a4e5a0dd4 100644
--- a/resources/views/errors/404.blade.php
+++ b/resources/views/errors/404.blade.php
@@ -1,9 +1,55 @@
-@extends('public')
+@extends('layouts.simple')
@section('content')
+
+
+
+
+ @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'),
+ ])
+
+
+
-
Page Not Found
-
The page you were looking for could not be found.
+
+
+ @if (setting('app-public') || !user()->isDefault())
+
+
+
+
{{ trans('entities.pages_popular') }}
+
+ @include('entities.list', ['entities' => (new \BookStack\Entities\Queries\Popular)->run(10, 0, ['page']), 'style' => 'compact'])
+
+
+
+
+
+
{{ trans('entities.books_popular') }}
+
+ @include('entities.list', ['entities' => (new \BookStack\Entities\Queries\Popular)->run(10, 0, ['book']), 'style' => 'compact'])
+
+
+
+
+
+
{{ trans('entities.chapters_popular') }}
+
+ @include('entities.list', ['entities' => (new \BookStack\Entities\Queries\Popular)->run(10, 0, ['chapter']), 'style' => 'compact'])
+
+
+
+
+ @endif
+
@stop
\ No newline at end of file