Error page style improvements

This commit is contained in:
Bernd Bestel
2020-08-29 16:58:06 +02:00
parent 3b0d29bed0
commit 22384aaa2e
5 changed files with 15 additions and 15 deletions

View File

@@ -5,7 +5,7 @@
@section('content')
<div class="row">
<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>
@stop

View File

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

View File

@@ -5,8 +5,8 @@
@section('content')
<div class="row">
<div class="col">
<div class="alert alert-danger">{{ $__t('A server error occured while processing your request') }}</div>
<div class="alert alert-warning">
<h1 class="alert alert-danger">{{ $__t('A server error occured while processing your request') }}</h1>
<div class="alert alert-info">
{{ $__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>
</div>

View File

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