X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/7cda9b026e11b67c861faa76dd1ce402467fe30b..refs/pull/5721/head:/resources/views/errors/404.blade.php diff --git a/resources/views/errors/404.blade.php b/resources/views/errors/404.blade.php index e13e1fce9..dc24a558d 100644 --- a/resources/views/errors/404.blade.php +++ b/resources/views/errors/404.blade.php @@ -1,49 +1,55 @@ -@extends('simple-layout') - +@extends('layouts.simple') +@inject('popular', \BookStack\Entities\Queries\QueryPopular::class) @section('content') -
+
-
-
-
-

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

-
{{ trans('errors.sorry_page_not_found') }}
-
-
- {{ trans('errors.return_home') }} +
+
+
+ @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(user()->isGuest()) + {{ trans('auth.log_in') }} + @endif + {{ trans('errors.return_home') }} +
-
-
+
- @if (setting('app-public') || !user()->isDefault()) -
-
-
-

{{ trans('entities.pages_popular') }}

-
- @include('partials.entity-list', ['entities' => Views::getPopular(10, 0, 'page'), 'style' => 'compact']) + @if (setting('app-public') || !user()->isGuest()) +
+
+
+

{{ trans('entities.pages_popular') }}

+
+ @include('entities.list', ['entities' => $popular->run(10, 0, ['page']), 'style' => 'compact']) +
-
-
-
-

{{ trans('entities.books_popular') }}

-
- @include('partials.entity-list', ['entities' => Views::getPopular(10, 0, 'book'), 'style' => 'compact']) +
+
+

{{ trans('entities.books_popular') }}

+
+ @include('entities.list', ['entities' => $popular->run(10, 0, ['book']), 'style' => 'compact']) +
-
-
-
-

{{ trans('entities.chapters_popular') }}

-
- @include('partials.entity-list', ['entities' => Views::getPopular(10, 0, 'chapter'), 'style' => 'compact']) +
+
+

{{ trans('entities.chapters_popular') }}

+
+ @include('entities.list', ['entities' => $popular->run(10, 0, ['chapter']), 'style' => 'compact']) +
-
- @endif -
+ @endif +
@stop \ No newline at end of file