From ceb65fe29fa496266ca14ba310cdaa69b84cbf89 Mon Sep 17 00:00:00 2001 From: Miroslav Bauer Date: Mon, 7 Jun 2021 13:01:16 +0200 Subject: [PATCH] error pages --- appinfo/info.xml | 2 +- core/css/styles.css | 6 +++++- core/templates/403.php | 21 +++++++++++++++++++++ core/templates/404.php | 25 +++++++++++++++++++++++++ core/templates/error.php | 12 ++++++++++++ core/templates/exception.php | 33 +++++++++++++++++++++++++++++++++ core/templates/layout.guest.php | 2 +- 7 files changed, 98 insertions(+), 3 deletions(-) create mode 100644 core/templates/403.php create mode 100644 core/templates/404.php create mode 100644 core/templates/error.php create mode 100644 core/templates/exception.php diff --git a/appinfo/info.xml b/appinfo/info.xml index e27f344..649aefd 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -5,7 +5,7 @@ Custom theme for the ownCloud@CESNET server. AGPL Miroslav Bauer @ CESNET - 2.0.0a14 + 2.0.0a15 diff --git a/core/css/styles.css b/core/css/styles.css index e9fc52e..43ffb91 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -106,7 +106,7 @@ button.primary:focus, } .is-xsmall { - font-size: 0.65rem !important; + font-size: 0.75rem !important; } .message { @@ -118,6 +118,10 @@ button.primary:focus, color: white !important; } +.message.is-danger .message-body { + border-color: #E60000 !important; +} + .hero-title { font-size: 6rem !important; } diff --git a/core/templates/403.php b/core/templates/403.php new file mode 100644 index 0000000..37ea015 --- /dev/null +++ b/core/templates/403.php @@ -0,0 +1,21 @@ +printPage(); + exit; +} +// @codeCoverageIgnoreEnd +?> +

t('Access forbidden')); ?>

+ +">t('Return to login page')); ?> diff --git a/core/templates/404.php b/core/templates/404.php new file mode 100644 index 0000000..dde88d9 --- /dev/null +++ b/core/templates/404.php @@ -0,0 +1,25 @@ +printPage(); + exit; +} +// @codeCoverageIgnoreEnd +?> + + + +

t('File not found')); ?>

+ + \ No newline at end of file diff --git a/core/templates/error.php b/core/templates/error.php new file mode 100644 index 0000000..27a5131 --- /dev/null +++ b/core/templates/error.php @@ -0,0 +1,12 @@ +

Error

+ +">t('Return to login page')); ?> diff --git a/core/templates/exception.php b/core/templates/exception.php new file mode 100644 index 0000000..fe3cd65 --- /dev/null +++ b/core/templates/exception.php @@ -0,0 +1,33 @@ + +

t('Internal Server Error')) ?>

+ +

t('The server encountered an internal error and was unable to complete your request.')) ?>

+

t('Please contact the server administrator if this error reappears multiple times and include the technical details below in your report.')) ?>

+

t('More details can be found in the server log.', [link_to_docs('admin-logfiles')])); ?>

+
+

t('Technical details')) ?>

+
+ +
+ + +
+

t('Trace')) ?>

+
+ + diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php index 7ec112b..03766c8 100644 --- a/core/templates/layout.guest.php +++ b/core/templates/layout.guest.php @@ -113,7 +113,7 @@ class="button is-primary is-inverted">