1
0
mirror of https://github.com/cydrobolt/polr.git synced 2024-09-19 23:21:47 +02:00

Merge branch 'master' into master

This commit is contained in:
DT27 2018-02-12 08:03:22 +08:00 committed by GitHub
commit 0ba3a50d49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 5 deletions

View File

@ -51,7 +51,7 @@ class Handler extends ExceptionHandler {
return redirect()->to(env('SETTING_INDEX_REDIRECT')); return redirect()->to(env('SETTING_INDEX_REDIRECT'));
} }
// Otherwise, show a nice error page // Otherwise, show a nice error page
return view('errors.404'); return response(view('errors.404'), 404);
} }
if ($e instanceof HttpException) { if ($e instanceof HttpException) {
// Handle HTTP exceptions thrown by public-facing controllers // Handle HTTP exceptions thrown by public-facing controllers
@ -60,11 +60,15 @@ class Handler extends ExceptionHandler {
if ($status_code == 500) { if ($status_code == 500) {
// Render a nice error page for 500s // Render a nice error page for 500s
return view('errors.500'); return response(view('errors.500'), 500);
} }
else { else {
// If not 500, render generic page // If not 500, render generic page
return response(view('errors.generic', ['status_code' => $status_code, 'status_message' => $status_message]), $status_code); return response(
view('errors.generic', [
'status_code' => $status_code,
'status_message' => $status_message
]), $status_code);
} }
} }
if ($e instanceof ApiException) { if ($e instanceof ApiException) {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 9.2 KiB

View File

@ -17,11 +17,11 @@
} }
.logo-img { .logo-img {
width: 18em; width: 17em;
} }
.logo-well { .logo-well {
width: 19em; width: 20.5em;
-webkit-animation: colorpulse 20s infinite; -webkit-animation: colorpulse 20s infinite;
animation: colorpulse 20s infinite; animation: colorpulse 20s infinite;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 9.8 KiB