Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix error views.
James Cole0a6d5b176628
diff --git a/resources/views/errors/404.twig b/resources/views/errors/404.twignew file mode 100644index 0000000000..848d6674f5--- /dev/null+++ b/resources/views/errors/404.twig@@ -0,0 +1,44 @@+<!DOCTYPE html>+<html>+<head>+ <base href="{{ route('index') }}/">+ <meta charset="utf-8">+ <meta http-equiv="X-UA-Compatible" content="IE=edge">+ <title>Firefly III | Maintenance Mode</title>+ <!-- Tell the browser to be responsive to screen width -->+ <meta name="viewport" content="width=device-width, initial-scale=1">++ <link rel="stylesheet" href="v2/plugins/local-fonts/gf-source.css">+ <link rel="stylesheet" href="v2/css/app.css">++</head>+<body>++<div class="container-fluid">+ <div class="row">+ <div class="col-12">+ <div class="error-page">+ <h2 class="headline text-info">404</h2>++ <div class="error-content">+ <h3><i class="fas fa-question-circle text-info"></i> 404 - Page not found</h3>+ <p>+ {{ trans('errors.404_header') }}+ </p>+ <p>+ {{ trans('errors.404_page_does_not_exist') }}+ </p>+ <p>+ {{ trans('errors.404_send_error') }}+ </p>+ <p>+ {{ trans('errors.404_github_link')|raw }}+ </p>+ </div>+ </div>+ </div>+ </div>+</div>+</body>+</html>+diff --git a/resources/views/errors/500.twig b/resources/views/errors/500.twignew file mode 100644index 0000000000..2844d6d9a6--- /dev/null+++ b/resources/views/errors/500.twig@@ -0,0 +1,80 @@+<!DOCTYPE html>+<html>+<head>+ <base href="{{ route('index') }}/">+ <meta charset="utf-8">+ <meta http-equiv="X-UA-Compatible" content="IE=edge">+ <title>Firefly III | 500 Error</title>+ <!-- Tell the browser to be responsive to screen width -->+ <meta name="viewport" content="width=device-width, initial-scale=1">++ <link rel="stylesheet" href="v2/plugins/local-fonts/gf-source.css">+ <link rel="stylesheet" href="v2/css/app.css">++</head>+<body>++<div class="container-fluid">+ <div class="row">+ <div class="col-12">+ <div class="error-page">+ <h2 class="headline text-danger">500</h2>++ <div class="error-content">+ <h3><i class="fas fa-exclamation-triangle text-danger"></i> {{ trans('errors.error_occurred') }}</h3>++ <p>+ {{ trans('errors.error_not_recoverable') }}+ </p>+ <p class="text-danger">+ {{ exception.getMessage |default('General unknown errror') }}+ </p>++ {% if not debug %}+ <h4>+ {{ trans('errors.more_info') }}+ </h4>+ <p>+ {{ trans('errors.collect_info')|raw }}+ {{ trans('errors.collect_info_more')|raw }}+ </p>+ <h4>+ {{ trans('errors.github_help') }}+ </h4>+ <p>+ {{ trans('errors.github_instructions')|raw }}+ </p>+ <ol>+ <li>{{ trans('errors.use_search') }}</li>+ <li>{{ trans('errors.include_info', { link: route('debug') })|raw }}</li>+ <li>{{ trans('errors.tell_more') }}</li>+ <li>{{ trans('errors.include_logs') }}</li>+ <li>{{ trans('errors.what_did_you_do') }}</li>+ </ol>+ {% endif %}++ </div>+ </div>+ </div>+ </div>++ {% if debug %}+ <div class="row">+ <div class="col-lg-8 offset-lg-2">+ <h4>{{ trans('errors.error') }}</h4>+ <p>+ {{ trans('errors.error_location', {file: exception.getFile, line: exception.getLine, code: exception.getCode })|raw }}+ </p>+ <h4>+ {{ trans('errors.stacktrace') }}+ </h4>+ <div style="font-family: monospace;font-size:11px;">+ {{ exception.getTraceAsString|nl2br }}+ </div>+ </div>+ </div>+ {% endif %}++</div>+</body>+</html>