fix 503 page

This commit is contained in:
Pig Fang 2020-06-20 09:42:02 +08:00
parent 07ba462073
commit 06b937f8ce
2 changed files with 1 additions and 8 deletions

View File

@ -75,12 +75,5 @@ class ViewServiceProvider extends ServiceProvider
}
// @codeCoverageIgnoreEnd
});
View::composer('errors.503', function ($view) {
$view->with(
'show_login_button',
!auth()->check() && request()->is('setup/*')
);
});
}
}

View File

@ -7,7 +7,7 @@
<p>
{{ trans('errors.exception.detail', {msg: exception.message ?: trans('errors.http.msg-503')}) }}
</p>
{% if show_login_button %}
{% if not auth_check() %}
<div class="mt-5">
<a href="{{ url('/auth/login') }}" class="btn btn-primary">
<i class="icon fas fa-sign-in-alt mr-1"></i>