X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/919660678bec2b94eaa84ac60d0313f5ef07dfb7..refs/pull/2376/head:/resources/views/errors/404.blade.php diff --git a/resources/views/errors/404.blade.php b/resources/views/errors/404.blade.php index 9c431828a..02f97fc54 100644 --- a/resources/views/errors/404.blade.php +++ b/resources/views/errors/404.blade.php @@ -1,36 +1,49 @@ @extends('simple-layout') @section('content') -
+
-

 

- -
-

@icon('danger') {{ $message or trans('errors.404_page_not_found') }}

-
-
{{ trans('errors.sorry_page_not_found') }}
-

{{ trans('errors.return_home') }}

+
+
+
+

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

+
{{ trans('errors.sorry_page_not_found') }}
+

{{ trans('errors.sorry_page_not_found_permission_warning') }}

+
+
+ @if(!signedInUser()) + {{ trans('auth.log_in') }} + @endif + {{ trans('errors.return_home') }} +
+
@if (setting('app-public') || !user()->isDefault()) -
-
-
-

@icon('page') {{ trans('entities.pages_popular') }}

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

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

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

@icon('book') {{ trans('entities.books_popular') }}

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

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

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

@icon('chapter') {{ trans('entities.chapters_popular') }}

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

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

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