Merge pull request #4925 from nextcloud/error-styling
Improve design and wording of various error messagespull/6301/head
commit
7d8b7d4e4e
@ -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>
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue