Error page style improvements

This commit is contained in:
Bernd Bestel 2020-08-29 16:58:06 +02:00
parent 3b0d29bed0
commit 22384aaa2e
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300
5 changed files with 15 additions and 15 deletions

View File

@ -1877,7 +1877,7 @@ msgstr ""
msgid "Stack trace" msgid "Stack trace"
msgstr "" msgstr ""
msgid "This page does not exists" msgid "This page does not exist"
msgstr "" msgstr ""
msgid "You will be redirected to the default page in %s seconds" msgid "You will be redirected to the default page in %s seconds"

View File

@ -5,7 +5,7 @@
@section('content') @section('content')
<div class="row"> <div class="row">
<div class="col"> <div class="col">
<div class="alert alert-danger">{{ $__t('You are not allowed to view this page') }}</div> <h1 class="alert alert-danger">{{ $__t('You are not allowed to view this page') }}</h1>
</div> </div>
</div> </div>
@stop @stop

View File

@ -6,8 +6,8 @@
<meta http-equiv="refresh" content="5;url={{$U('/')}}"> <meta http-equiv="refresh" content="5;url={{$U('/')}}">
<div class="row"> <div class="row">
<div class="col"> <div class="col">
<div class="alert alert-danger">{{ $__t('This page does not exists') }}</div> <h1 class="alert alert-danger">{{ $__t('This page does not exist') }}</h1>
<div>{{ $__t('You will be redirected to the default page in %s seconds', '5') }}</div> <div class="alert alert-info">{{ $__t('You will be redirected to the default page in %s seconds', '5') }}</div>
</div> </div>
</div> </div>
@stop @stop

View File

@ -5,8 +5,8 @@
@section('content') @section('content')
<div class="row"> <div class="row">
<div class="col"> <div class="col">
<div class="alert alert-danger">{{ $__t('A server error occured while processing your request') }}</div> <h1 class="alert alert-danger">{{ $__t('A server error occured while processing your request') }}</h1>
<div class="alert alert-warning"> <div class="alert alert-info">
{{ $__t('If you think this is a bug, please report it') }}<br> {{ $__t('If you think this is a bug, please report it') }}<br>
&rarr; <a target="_blank" href="https://github.com/grocy/grocy/issues">https://github.com/grocy/grocy/issues</a> &rarr; <a target="_blank" href="https://github.com/grocy/grocy/issues">https://github.com/grocy/grocy/issues</a>
</div> </div>

View File

@ -3,17 +3,17 @@
@section('content') @section('content')
<div class="row"> <div class="row">
<div class="col"> <div class="col">
<div> <div class="alert alert-dark py-1">
<h6>{{ $__t('Error source') }}</h6> <h4>{{ $__t('Error source') }}</h4>
<pre><code>{!! $exception->getFile() !!}:{!! $exception->getLine() !!}</code></pre> <pre class="my-0"><code>{!! $exception->getFile() !!}:{!! $exception->getLine() !!}</code></pre>
</div> </div>
<div> <div class="alert alert-dark py-1">
<h6>{{ $__t('Error message') }}</h6> <h4>{{ $__t('Error message') }}</h4>
<pre><code>{!! $exception->getMessage() !!}</code></pre> <pre class="my-0"><code>{!! $exception->getMessage() !!}</code></pre>
</div> </div>
<div> <div class="alert alert-dark py-1">
<h6>{{ $__t('Stack trace') }}</h6> <h4>{{ $__t('Stack trace') }}</h4>
<pre><code>{!! $exception->getTraceAsString() !!}</code></pre> <pre class="my-0"><code>{!! $exception->getTraceAsString() !!}</code></pre>
</div> </div>
</div> </div>
</div> </div>