From 22384aaa2ef0a87e372ad82c7b710ef91bfe226b Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Sat, 29 Aug 2020 16:58:06 +0200 Subject: [PATCH] Error page style improvements --- localization/strings.pot | 2 +- views/errors/403.blade.php | 2 +- views/errors/404.blade.php | 4 ++-- views/errors/500.blade.php | 4 ++-- views/errors/base.blade.php | 18 +++++++++--------- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/localization/strings.pot b/localization/strings.pot index 2d8b7f7a..8ea7eb50 100644 --- a/localization/strings.pot +++ b/localization/strings.pot @@ -1877,7 +1877,7 @@ msgstr "" msgid "Stack trace" msgstr "" -msgid "This page does not exists" +msgid "This page does not exist" msgstr "" msgid "You will be redirected to the default page in %s seconds" diff --git a/views/errors/403.blade.php b/views/errors/403.blade.php index c197ac2b..0fd85e7f 100644 --- a/views/errors/403.blade.php +++ b/views/errors/403.blade.php @@ -5,7 +5,7 @@ @section('content')
-
{{ $__t('You are not allowed to view this page') }}
+

{{ $__t('You are not allowed to view this page') }}

@stop diff --git a/views/errors/404.blade.php b/views/errors/404.blade.php index 257c4654..abf2baf1 100644 --- a/views/errors/404.blade.php +++ b/views/errors/404.blade.php @@ -6,8 +6,8 @@
-
{{ $__t('This page does not exists') }}
-
{{ $__t('You will be redirected to the default page in %s seconds', '5') }}
+

{{ $__t('This page does not exist') }}

+
{{ $__t('You will be redirected to the default page in %s seconds', '5') }}
@stop diff --git a/views/errors/500.blade.php b/views/errors/500.blade.php index 8128616e..9708de8e 100644 --- a/views/errors/500.blade.php +++ b/views/errors/500.blade.php @@ -5,8 +5,8 @@ @section('content')
-
{{ $__t('A server error occured while processing your request') }}
-
+

{{ $__t('A server error occured while processing your request') }}

+
{{ $__t('If you think this is a bug, please report it') }}
https://github.com/grocy/grocy/issues
diff --git a/views/errors/base.blade.php b/views/errors/base.blade.php index 5dc553ed..3d20995c 100644 --- a/views/errors/base.blade.php +++ b/views/errors/base.blade.php @@ -3,17 +3,17 @@ @section('content')
-
-
{{ $__t('Error source') }}
-
{!! $exception->getFile() !!}:{!! $exception->getLine() !!}
+
+

{{ $__t('Error source') }}

+
{!! $exception->getFile() !!}:{!! $exception->getLine() !!}
-
-
{{ $__t('Error message') }}
-
{!! $exception->getMessage() !!}
+
+

{{ $__t('Error message') }}

+
{!! $exception->getMessage() !!}
-
-
{{ $__t('Stack trace') }}
-
{!! $exception->getTraceAsString() !!}
+
+

{{ $__t('Stack trace') }}

+
{!! $exception->getTraceAsString() !!}