From b60d2190ac95f33cc56c8ce9930e761a0b283c1d Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Sat, 26 Aug 2017 14:53:23 +0100 Subject: [PATCH] Updated error views for redesign --- resources/views/errors/404.blade.php | 32 ++++++++++++++++++---------- resources/views/errors/500.blade.php | 9 ++++++-- resources/views/errors/503.blade.php | 10 ++++++--- 3 files changed, 35 insertions(+), 16 deletions(-) diff --git a/resources/views/errors/404.blade.php b/resources/views/errors/404.blade.php index a0e34e83d..f6ef850af 100644 --- a/resources/views/errors/404.blade.php +++ b/resources/views/errors/404.blade.php @@ -1,30 +1,40 @@ -@extends('base') +@extends('simple-layout') @section('content')
+

 

-

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

-

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

-

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

+
+

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

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

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

+
+
@if (setting('app-public') || !user()->isDefault()) -
-

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

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

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

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

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

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

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

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

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

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

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

+ @include('partials.entity-list', ['entities' => Views::getPopular(10, 0, [\BookStack\Chapter::class]), 'style' => 'compact']) +
@endif diff --git a/resources/views/errors/500.blade.php b/resources/views/errors/500.blade.php index 6dd96cdcc..71fb78a35 100644 --- a/resources/views/errors/500.blade.php +++ b/resources/views/errors/500.blade.php @@ -3,8 +3,13 @@ @section('content')
-

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

-

{{ $message }}

+
+

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

+
+
{{ $message }}
+

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

+
+
@stop \ No newline at end of file diff --git a/resources/views/errors/503.blade.php b/resources/views/errors/503.blade.php index 1ea39a7b8..98670df8a 100644 --- a/resources/views/errors/503.blade.php +++ b/resources/views/errors/503.blade.php @@ -2,9 +2,13 @@ @section('content') -
-

{{ trans('errors.app_down', ['appName' => setting('app-name')]) }}

-

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

+
+
+
+

{{ trans('errors.app_down', ['appName' => setting('app-name')]) }}

+

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

+
+
@stop \ No newline at end of file