Skip to content

Firefly III: a personal finances manager

Restore error templates

James Coleebf6b5012699
diff --git a/resources/views/errors/404.twig b/resources/views/errors/404.twig
index 68b83d0f73..28845e45f8 100644
--- a/resources/views/errors/404.twig
+++ b/resources/views/errors/404.twig
@@ -1,44 +1,56 @@
<!DOCTYPE html>
<html>
<head>
- <base href="{{ route('index') }}/">
- <meta charset="utf-8">
+ <meta charset="UTF-8">
+ <meta name="robots" content="noindex, nofollow, noarchive, noodp, NoImageIndex, noydir">
+ <title>Firefly III 404 :(</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
- <title>Firefly III | 404</title>
- <!-- Tell the browser to be responsive to screen width -->
- <meta name="viewport" content="width=device-width, initial-scale=1">
+ <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
+ <base href="{{ route('index') }}/">
+
+ {# CSS things #}
+
+ {# libraries #}
+ <link href="v1/lib/bs/css/bootstrap.min.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
+ <link href="v1/lib/fa/css/font-awesome.min.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
+ <link href="v1/css/daterangepicker.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
- <link rel="stylesheet" href="v2/plugins/local-fonts/gf-source.css" nonce="{{ JS_NONCE }}">
- <link rel="stylesheet" href="v2/css/app.css" nonce="{{ JS_NONCE }}">
+ {# the theme #}
+ <link href="v1/lib/adminlte/css/AdminLTE.min.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
+ <link href="v1/lib/adminlte/css/skins/skin-blue-light.min.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
+
+ {# Firefly III customisations #}
+ <link href="v1/css/error.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
+
+ {# favicons #}
+ {% include('partials.favicons') %}
</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><span class="fas fa-question-circle text-info"></span> 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>
+<body class="container">
+<div class="row">
+ <div class="col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12">
+ <h1><s><b>Firefly</b>III</s> 404 Not Found :(</h1>
</div>
</div>
+<div class="row">
+ <div class="col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12">
+ <h3 class="text-info">404 &mdash; {{ trans('errors.404_header') }}</h3>
+ </div>
+</div>
+<div class="row">
+ <div class="col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12">
+ <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>
+
+
</body>
</html>
-
diff --git a/resources/views/errors/500.twig b/resources/views/errors/500.twig
index 192279f5fa..f01b0f0f95 100644
--- a/resources/views/errors/500.twig
+++ b/resources/views/errors/500.twig
@@ -1,80 +1,97 @@
<!DOCTYPE html>
<html>
<head>
- <base href="{{ route('index') }}/">
- <meta charset="utf-8">
+ <meta charset="UTF-8">
+ <meta name="robots" content="noindex, nofollow, noarchive, noodp, NoImageIndex, noydir">
+ <title>Firefly III 500 :(</title>
<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">
+ <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
+ <base href="{{ route('index') }}/">
- <link rel="stylesheet" href="v2/plugins/local-fonts/gf-source.css" nonce="{{ JS_NONCE }}">
- <link rel="stylesheet" href="v2/css/app.css" nonce="{{ JS_NONCE }}">
+ {# CSS things #}
-</head>
-<body>
+ {# libraries #}
+ <link href="v1/lib/bs/css/bootstrap.min.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
+ <link href="v1/lib/fa/css/font-awesome.min.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
+ <link href="v1/css/daterangepicker.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
-<div class="container-fluid">
- <div class="row">
- <div class="col-12">
- <div class="error-page">
- <h2 class="headline text-danger">500</h2>
+ {# the theme #}
+ <link href="v1/lib/adminlte/css/AdminLTE.min.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
+ <link href="v1/lib/adminlte/css/skins/skin-blue-light.min.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
- <div class="error-content">
- <h3><span class="fas fa-exclamation-triangle text-danger"></span> {{ trans('errors.error_occurred') }}</h3>
+ {# Firefly III customisations #}
+ <link href="v1/css/error.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
- <p>
- {{ trans('errors.error_not_recoverable') }}
- </p>
- <p class="text-danger">
- {{ exception.getMessage |default('General unknown errror') }}
- </p>
+ {# favicons #}
+ {% include('partials.favicons') %}
- {% 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 %}
+</head>
+<body class="container">
+<div class="row">
+ <div class="col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12">
+ <h1><a href="{{ route('index') }}"><b>Firefly</b>III</a></h1>
+ </div>
+</div>
+<div class="row">
+ <div class="col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12">
+ <h3 class="text-info">{{ trans('errors.error_occurred') }}</h3>
+ </div>
+</div>
+<div class="row">
+ <div class="col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12">
+ <p>
+ {{ trans('errors.error_not_recoverable') }}
+ </p>
+ <p class="text-danger">
+ {{ exception.getMessage |default('General unknown errror') }}
- </div>
- </div>
+ </p>
+ </div>
+</div>
+{% if not debug %}
+ <div class="row">
+ <div class="col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12">
+ <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>
</div>
</div>
+{% endif %}
- {% 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>
+{% if debug %}
+ <div class="row">
+ <div class="col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12">
+ <h4></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>
- {% endif %}
+ </div>
+{% endif %}
-</div>
</body>
</html>
+
diff --git a/resources/views/errors/503.twig b/resources/views/errors/503.twig
index 52a7958956..cb206bebb4 100644
--- a/resources/views/errors/503.twig
+++ b/resources/views/errors/503.twig
@@ -1,41 +1,47 @@
<!DOCTYPE html>
<html>
<head>
- <base href="{{ route('index') }}/">
- <meta charset="utf-8">
+ <meta charset="UTF-8">
+ <meta name="robots" content="noindex, nofollow, noarchive, noodp, NoImageIndex, noydir">
+ <title>Firefly III Maintenance Mode</title>
<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">
+ <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
+ <base href="{{ route('index') }}/">
- <link rel="stylesheet" href="v2/plugins/local-fonts/gf-source.css" nonce="{{ JS_NONCE }}">
- <link rel="stylesheet" href="v2/css/app.css" nonce="{{ JS_NONCE }}">
+ {# libraries #}
+ <link href="v1/lib/bs/css/bootstrap.min.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
-</head>
-<body>
+ {# the theme #}
+ <link href="v1/lib/adminlte/css/AdminLTE.min.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
+ <link href="v1/lib/adminlte/css/skins/skin-blue-light.min.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
-<div class="container-fluid">
- <div class="row">
- <div class="col-12">
- <div class="error-page">
- <h2 class="headline text-info">503</h2>
+ {# Firefly III customisations #}
+ <link href="v1/css/error.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
- <div class="error-content">
- <h3><span class="fas fa-wrench text-info"></span> {{ trans('errors.maintenance_mode') }}</h3>
- <p>
- {{ trans('errors.check_back') }}
- </p>
- {% if 'demo.firefly-iii.org' == Request.getHost() %}
- <p>
- <span class="fas fa-recycle"></span> The Firefly III demo website resets every <strong>four hours</strong>.
- Please wait for this process to finish. It should take less than a minute.
- </p>
- {% endif %}
- </div>
- </div>
- </div>
+ {# favicons #}
+ {% include('partials.favicons') %}
+
+</head>
+<body class="container">
+<div class="row">
+ <div class="col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12">
+ <h1><a href="{{ route('index') }}"><b>Firefly</b>III</a></h1>
+ </div>
+</div>
+<div class="row">
+ <div class="col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12">
+ <h3 class="text-info">{{ trans('errors.maintenance_mode') }}</h3>
+ </div>
+</div>
+<div class="row">
+ <div class="col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12">
+ <p>
+ {{ trans('errors.be_right_back') }}
+ </p>
+ <p class="text-danger">
+ {{ trans('errors.check_back') }}
+ </p>
</div>
</div>
</body>
</html>
-
diff --git a/resources/views/errors/FireflyException.twig b/resources/views/errors/FireflyException.twig
index 192279f5fa..df85b70dff 100644
--- a/resources/views/errors/FireflyException.twig
+++ b/resources/views/errors/FireflyException.twig
@@ -1,80 +1,95 @@
<!DOCTYPE html>
<html>
<head>
- <base href="{{ route('index') }}/">
- <meta charset="utf-8">
+ <meta charset="UTF-8">
+ <meta name="robots" content="noindex, nofollow, noarchive, noodp, NoImageIndex, noydir">
+ <title>Firefly III Exception :(</title>
<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">
+ <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
+ <base href="{{ route('index') }}/">
- <link rel="stylesheet" href="v2/plugins/local-fonts/gf-source.css" nonce="{{ JS_NONCE }}">
- <link rel="stylesheet" href="v2/css/app.css" nonce="{{ JS_NONCE }}">
+ {# CSS things #}
-</head>
-<body>
-
-<div class="container-fluid">
- <div class="row">
- <div class="col-12">
- <div class="error-page">
- <h2 class="headline text-danger">500</h2>
+ {# libraries #}
+ <link href="v1/lib/bs/css/bootstrap.min.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
+ <link href="v1/lib/fa/css/font-awesome.min.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
+ <link href="v1/css/daterangepicker.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
- <div class="error-content">
- <h3><span class="fas fa-exclamation-triangle text-danger"></span> {{ trans('errors.error_occurred') }}</h3>
+ {# the theme #}
+ <link href="v1/lib/adminlte/css/AdminLTE.min.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
+ <link href="v1/lib/adminlte/css/skins/skin-blue-light.min.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
- <p>
- {{ trans('errors.error_not_recoverable') }}
- </p>
- <p class="text-danger">
- {{ exception.getMessage |default('General unknown errror') }}
- </p>
+ {# Firefly III customisations #}
+ <link href="v1/css/error.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
- {% 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 %}
+ {# favicons #}
+ {% include('partials.favicons') %}
- </div>
- </div>
+</head>
+<body class="container">
+<div class="row">
+ <div class="col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12">
+ <h1><a href="{{ route('index') }}"><b>Firefly</b>III</a></h1>
+ </div>
+</div>
+<div class="row">
+ <div class="col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12">
+ <h3 class="text-info">{{ trans('errors.error_occurred') }}</h3>
+ </div>
+</div>
+<div class="row">
+ <div class="col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12">
+ <p>
+ {{ trans('errors.error_not_recoverable') }}
+ </p>
+ <p class="text-danger">
+ {{ exception.getMessage |default('General unknown errror') }}
+ </p>
+ </div>
+</div>
+{% if not debug %}
+ <div class="row">
+ <div class="col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12">
+ <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>
</div>
</div>
+{% endif %}
- {% 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>
+{% if debug %}
+ <div class="row">
+ <div class="col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12">
+ <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>
- {% endif %}
+ </div>
+{% endif %}
-</div>
</body>
</html>
diff --git a/resources/views/v1/errors/404.twig b/resources/views/v1/errors/404.twig
deleted file mode 100644
index 28845e45f8..0000000000
--- a/resources/views/v1/errors/404.twig
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <meta charset="UTF-8">
- <meta name="robots" content="noindex, nofollow, noarchive, noodp, NoImageIndex, noydir">
- <title>Firefly III 404 :(</title>
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
- <base href="{{ route('index') }}/">
-
- {# CSS things #}
-
- {# libraries #}
- <link href="v1/lib/bs/css/bootstrap.min.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
- <link href="v1/lib/fa/css/font-awesome.min.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
- <link href="v1/css/daterangepicker.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
-
- {# the theme #}
- <link href="v1/lib/adminlte/css/AdminLTE.min.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
- <link href="v1/lib/adminlte/css/skins/skin-blue-light.min.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
-
- {# Firefly III customisations #}
- <link href="v1/css/error.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
-
- {# favicons #}
- {% include('partials.favicons') %}
-
-</head>
-<body class="container">
-<div class="row">
- <div class="col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12">
- <h1><s><b>Firefly</b>III</s> 404 Not Found :(</h1>
- </div>
-</div>
-<div class="row">
- <div class="col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12">
- <h3 class="text-info">404 &mdash; {{ trans('errors.404_header') }}</h3>
- </div>
-</div>
-<div class="row">
- <div class="col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12">
- <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>
-
-
-</body>
-</html>
diff --git a/resources/views/v1/errors/500.twig b/resources/views/v1/errors/500.twig
deleted file mode 100644
index f01b0f0f95..0000000000
--- a/resources/views/v1/errors/500.twig
+++ /dev/null
@@ -1,97 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <meta charset="UTF-8">
- <meta name="robots" content="noindex, nofollow, noarchive, noodp, NoImageIndex, noydir">
- <title>Firefly III 500 :(</title>
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
- <base href="{{ route('index') }}/">
-
- {# CSS things #}
-
- {# libraries #}
- <link href="v1/lib/bs/css/bootstrap.min.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
- <link href="v1/lib/fa/css/font-awesome.min.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
- <link href="v1/css/daterangepicker.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
-
- {# the theme #}
- <link href="v1/lib/adminlte/css/AdminLTE.min.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
- <link href="v1/lib/adminlte/css/skins/skin-blue-light.min.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
-
- {# Firefly III customisations #}
- <link href="v1/css/error.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
-
- {# favicons #}
- {% include('partials.favicons') %}
-
-</head>
-<body class="container">
-<div class="row">
- <div class="col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12">
- <h1><a href="{{ route('index') }}"><b>Firefly</b>III</a></h1>
- </div>
-</div>
-<div class="row">
- <div class="col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12">
- <h3 class="text-info">{{ trans('errors.error_occurred') }}</h3>
- </div>
-</div>
-<div class="row">
- <div class="col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12">
- <p>
- {{ trans('errors.error_not_recoverable') }}
- </p>
- <p class="text-danger">
- {{ exception.getMessage |default('General unknown errror') }}
-
- </p>
- </div>
-</div>
-{% if not debug %}
- <div class="row">
- <div class="col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12">
- <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>
- </div>
- </div>
-{% endif %}
-
-{% if debug %}
- <div class="row">
- <div class="col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12">
- <h4></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 %}
-
-</body>
-</html>
-
diff --git a/resources/views/v1/errors/503.twig b/resources/views/v1/errors/503.twig
deleted file mode 100644
index cb206bebb4..0000000000
--- a/resources/views/v1/errors/503.twig
+++ /dev/null
@@ -1,47 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <meta charset="UTF-8">
- <meta name="robots" content="noindex, nofollow, noarchive, noodp, NoImageIndex, noydir">
- <title>Firefly III Maintenance Mode</title>
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
- <base href="{{ route('index') }}/">
-
- {# libraries #}
- <link href="v1/lib/bs/css/bootstrap.min.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
-
- {# the theme #}
- <link href="v1/lib/adminlte/css/AdminLTE.min.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
- <link href="v1/lib/adminlte/css/skins/skin-blue-light.min.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
-
- {# Firefly III customisations #}
- <link href="v1/css/error.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
-
- {# favicons #}
- {% include('partials.favicons') %}
-
-</head>
-<body class="container">
-<div class="row">
- <div class="col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12">
- <h1><a href="{{ route('index') }}"><b>Firefly</b>III</a></h1>
- </div>
-</div>
-<div class="row">
- <div class="col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12">
- <h3 class="text-info">{{ trans('errors.maintenance_mode') }}</h3>
- </div>
-</div>
-<div class="row">
- <div class="col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12">
- <p>
- {{ trans('errors.be_right_back') }}
- </p>
- <p class="text-danger">
- {{ trans('errors.check_back') }}
- </p>
- </div>
-</div>
-</body>
-</html>
diff --git a/resources/views/v1/errors/FireflyException.twig b/resources/views/v1/errors/FireflyException.twig
deleted file mode 100644
index df85b70dff..0000000000
--- a/resources/views/v1/errors/FireflyException.twig
+++ /dev/null
@@ -1,95 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <meta charset="UTF-8">
- <meta name="robots" content="noindex, nofollow, noarchive, noodp, NoImageIndex, noydir">
- <title>Firefly III Exception :(</title>
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
- <base href="{{ route('index') }}/">
-
- {# CSS things #}
-
- {# libraries #}
- <link href="v1/lib/bs/css/bootstrap.min.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
- <link href="v1/lib/fa/css/font-awesome.min.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
- <link href="v1/css/daterangepicker.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
-
- {# the theme #}
- <link href="v1/lib/adminlte/css/AdminLTE.min.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
- <link href="v1/lib/adminlte/css/skins/skin-blue-light.min.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
-
- {# Firefly III customisations #}
- <link href="v1/css/error.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css" nonce="{{ JS_NONCE }}">
-
- {# favicons #}
- {% include('partials.favicons') %}
-
-</head>
-<body class="container">
-<div class="row">
- <div class="col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12">
- <h1><a href="{{ route('index') }}"><b>Firefly</b>III</a></h1>
- </div>
-</div>
-<div class="row">
- <div class="col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12">
- <h3 class="text-info">{{ trans('errors.error_occurred') }}</h3>
- </div>
-</div>
-<div class="row">
- <div class="col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12">
- <p>
- {{ trans('errors.error_not_recoverable') }}
- </p>
- <p class="text-danger">
- {{ exception.getMessage |default('General unknown errror') }}
- </p>
- </div>
-</div>
-{% if not debug %}
- <div class="row">
- <div class="col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12">
- <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>
- </div>
- </div>
-{% endif %}
-
-{% if debug %}
- <div class="row">
- <div class="col-lg-10 col-lg-offset-1 col-md-12 col-sm-12 col-xs-12">
- <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 %}
-
-</body>
-</html>