From 9f67fb86c8d508dbf127577994735b141c5b96e9 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Wed, 17 May 2017 15:35:10 +0200 Subject: [PATCH 1/3] 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 dbed8d3b65..9c09cbca44 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 56f8c728d0..3903a2d9a7 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 b5e8c8eab3..929e8dd398 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 e90a326815..1c73698e5b 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 735f83fede..4f6dfe0fe9 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']))); ?> + +

    + From 83b0191017ad91e0120857e98019f303ffad7dae Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Mon, 19 Jun 2017 16:35:15 -0500 Subject: [PATCH 2/3] fix design of the track trace Signed-off-by: Morris Jobke --- core/templates/exception.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/templates/exception.php b/core/templates/exception.php index 1c73698e5b..fbbba0d48b 100644 --- a/core/templates/exception.php +++ b/core/templates/exception.php @@ -25,7 +25,7 @@ style('core', ['styles', 'header']);
    -

    t('Trace')) ?>

    +

    t('Trace')) ?>

    From faea9cb2948cd748b672a6f6985ed9bcaf168444 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Sat, 12 Aug 2017 19:01:42 +0200 Subject: [PATCH 3/3] Shorten text of untrusted domain error Signed-off-by: Jan-Christoph Borchardt --- core/templates/untrustedDomain.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/templates/untrustedDomain.php b/core/templates/untrustedDomain.php index 4f6dfe0fe9..cd361cff3b 100644 --- a/core/templates/untrustedDomain.php +++ b/core/templates/untrustedDomain.php @@ -4,10 +4,10 @@

    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('Please contact your administrator. If you are an administrator, edit the "trusted_domains" setting in config/config.php like the example in 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('Depending on your configuration, this button could also work to trust the domain:')); ?>