diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-08-29 12:03:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-29 12:03:16 +0200 |
commit | 7d8b7d4e4ea83fc31ea64446e9085185c476de09 (patch) | |
tree | 77c9571ed1e5fd25149a227f1ee4033480b1bf8a /core/templates | |
parent | 8c917cbfe0aa33e37d7cff278690b07bf40e1b62 (diff) | |
parent | faea9cb2948cd748b672a6f6985ed9bcaf168444 (diff) | |
download | nextcloud-server-7d8b7d4e4ea83fc31ea64446e9085185c476de09.tar.gz nextcloud-server-7d8b7d4e4ea83fc31ea64446e9085185c476de09.zip |
Merge pull request #4925 from nextcloud/error-styling
Improve design and wording of various error messages
Diffstat (limited to 'core/templates')
-rw-r--r-- | core/templates/error.php | 11 | ||||
-rw-r--r-- | core/templates/exception.php | 17 | ||||
-rw-r--r-- | core/templates/untrustedDomain.php | 30 |
3 files changed, 29 insertions, 29 deletions
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 @@ -<ul class="error-wide"> +<div class="error"> + <h2><?php p($l->t('Error')) ?></h2> + <ul> <?php foreach($_["errors"] as $error):?> - <li class='error'> - <?php p($error['error']) ?><br> + <li> + <p><?php p($error['error']) ?></p> <?php if(isset($error['hint']) && $error['hint']): ?> <p class='hint'><?php p($error['hint']) ?></p> <?php endif;?> </li> <?php endforeach ?> -</ul> + </ul> +</div> diff --git a/core/templates/exception.php b/core/templates/exception.php index e90a3268155..fbbba0d48b1 100644 --- a/core/templates/exception.php +++ b/core/templates/exception.php @@ -4,14 +4,13 @@ style('core', ['styles', 'header']); ?> -<span class="error error-wide"> - <h2><strong><?php p($l->t('Internal Server Error')) ?></strong></h2> - <p><?php p($l->t('The server encountered an internal error and was unable to complete your request.')) ?></p> - <p><?php p($l->t('Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.')) ?></p> - <p><?php p($l->t('More details can be found in the server log.')) ?></p> - <br> +<div class="error error-wide"> + <h2><?php p($l->t('Internal Server Error')) ?></h2> + <p><?php p($l->t('The server encountered an internal error and was unable to complete your request.')) ?></p> + <p><?php p($l->t('Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.')) ?></p> + <p><?php p($l->t('More details can be found in the server log.')) ?></p> - <h2><strong><?php p($l->t('Technical details')) ?></strong></h2> + <h3><?php p($l->t('Technical details')) ?></h3> <ul> <li><?php p($l->t('Remote Address: %s', $_['remoteAddr'])) ?></li> <li><?php p($l->t('Request ID: %s', $_['requestID'])) ?></li> @@ -26,7 +25,7 @@ style('core', ['styles', 'header']); <?php if($_['debugMode']): ?> <br /> - <h2><strong><?php p($l->t('Trace')) ?></strong></h2> + <h3><?php p($l->t('Trace')) ?></h3> <pre><?php p($_['trace']) ?></pre> <?php endif; ?> -</span> +</div> diff --git a/core/templates/untrustedDomain.php b/core/templates/untrustedDomain.php index 735f83fedec..cd361cff3b4 100644 --- a/core/templates/untrustedDomain.php +++ b/core/templates/untrustedDomain.php @@ -1,19 +1,17 @@ <?php /** @var $_ array */ ?> -<ul class="error-wide"> - <li class='error'> - <?php p($l->t('You are accessing the server from an untrusted domain.')); ?><br> +<div class="error"> + <h2><?php p($l->t('Access through untrusted domain')); ?></h2> - <p class='hint'> - <?php p($l->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.')); ?> - <br> - <?php p($l->t('Depending on your configuration, as an administrator you might also be able to use the button below to trust this domain.')); ?> - <br><br> - <p style="text-align:center;"> - <a href="<?php print_unescaped(\OC::$server->getURLGenerator()->getAbsoluteURL(\OCP\Util::linkToRoute('settings.AdminSettings.index'))); ?>?trustDomain=<?php p($_['domain']); ?>" class="button"> - <?php p($l->t('Add "%s" as trusted domain', array($_['domain']))); ?> - </a> - </p> - </p> - </li> -</ul> + <p> + <?php p($l->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.')); ?> + </p> + <p> + <?php p($l->t('Depending on your configuration, this button could also work to trust the domain:')); ?> + </p> + <p style="text-align:center;"> + <a href="<?php print_unescaped(\OC::$server->getURLGenerator()->getAbsoluteURL(\OCP\Util::linkToRoute('settings.AdminSettings.index'))); ?>?trustDomain=<?php p($_['domain']); ?>" class="button"> + <?php p($l->t('Add "%s" as trusted domain', array($_['domain']))); ?> + </a> + </p> +</div> |