From 9f67fb86c8d508dbf127577994735b141c5b96e9 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Wed, 17 May 2017 15:35:10 +0200 Subject: Improve design of various error messages Signed-off-by: Jan-Christoph Borchardt --- apps/dav/templates/exception.php | 5 ++--- core/css/guest.css | 5 +++++ core/templates/error.php | 11 +++++++---- core/templates/exception.php | 15 +++++++-------- core/templates/untrustedDomain.php | 30 ++++++++++++++---------------- 5 files changed, 35 insertions(+), 31 deletions(-) diff --git a/apps/dav/templates/exception.php b/apps/dav/templates/exception.php index dbed8d3b654..9c09cbca444 100644 --- a/apps/dav/templates/exception.php +++ b/apps/dav/templates/exception.php @@ -23,10 +23,9 @@ style('core', ['styles', 'header']); /** @param $_ array */ ?> -

-
+

-

t('Technical details')) ?>

+

t('Technical details')) ?>

  • t('Remote Address: %s', $_['remoteAddr'])) ?>
  • t('Request ID: %s', $_['requestID'])) ?>
  • diff --git a/core/css/guest.css b/core/css/guest.css index 56f8c728d00..3903a2d9a7d 100644 --- a/core/css/guest.css +++ b/core/css/guest.css @@ -492,6 +492,11 @@ form #selectDbType label.ui-state-active { .warning { margin-top: 15px; } +.warning h2, +.update h2, +.error h2 { + text-align: center; +} .warning.updateAnyways { text-align: center; } diff --git a/core/templates/error.php b/core/templates/error.php index b5e8c8eab3f..929e8dd3984 100644 --- a/core/templates/error.php +++ b/core/templates/error.php @@ -1,10 +1,13 @@ -
      +
      +

      t('Error')) ?>

      +
        -
      • -
        +
      • +

      • -
      +
    + diff --git a/core/templates/exception.php b/core/templates/exception.php index e90a3268155..1c73698e5b0 100644 --- a/core/templates/exception.php +++ b/core/templates/exception.php @@ -4,14 +4,13 @@ style('core', ['styles', 'header']); ?> - -

    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, please include the technical details below in your report.')) ?>

    -

    t('More details can be found in the server log.')) ?>

    -
    +
    +

    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, please include the technical details below in your report.')) ?>

    +

    t('More details can be found in the server log.')) ?>

    -

    t('Technical details')) ?>

    +

    t('Technical details')) ?>

    • t('Remote Address: %s', $_['remoteAddr'])) ?>
    • t('Request ID: %s', $_['requestID'])) ?>
    • @@ -29,4 +28,4 @@ style('core', ['styles', 'header']);

      t('Trace')) ?>

      - +
    diff --git a/core/templates/untrustedDomain.php b/core/templates/untrustedDomain.php index 735f83fedec..4f6dfe0fe91 100644 --- a/core/templates/untrustedDomain.php +++ b/core/templates/untrustedDomain.php @@ -1,19 +1,17 @@ -
      -
    • - t('You are accessing the server from an untrusted domain.')); ?>
      +
      +

      t('Access through untrusted domain')); ?>

      -

      - t('Please contact your administrator. If you are an administrator of this instance, configure the "trusted_domains" setting in config/config.php. An example configuration is provided in config/config.sample.php.')); ?> -
      - t('Depending on your configuration, as an administrator you might also be able to use the button below to trust this domain.')); ?> -

      -

      - - t('Add "%s" as trusted domain', array($_['domain']))); ?> - -

      -

      -
    • -
    +

    + t('Please contact your administrator. If you are an administrator of this instance, configure the "trusted_domains" setting in config/config.php. An example configuration is provided in config/config.sample.php.')); ?> +

    +

    + t('Depending on your configuration, as an administrator you might also be able to use the button below to trust this domain.')); ?> +

    +

    + + t('Add "%s" as trusted domain', array($_['domain']))); ?> + +

    + -- cgit v1.2.3