diff options
author | Ramiro Aparicio <rapariciog@gmail.com> | 2013-10-24 17:46:52 +0200 |
---|---|---|
committer | Ramiro Aparicio <rapariciog@gmail.com> | 2013-10-24 19:21:40 +0200 |
commit | 3a81c8e3af29a95eabed902d7223d0b92c546754 (patch) | |
tree | f878d2d60079ae05d92c8dae2a78a396e6c5cda5 | |
parent | 808e9b0f515585f8d2bb18de94eed994d14f3749 (diff) | |
download | nextcloud-server-3a81c8e3af29a95eabed902d7223d0b92c546754.tar.gz nextcloud-server-3a81c8e3af29a95eabed902d7223d0b92c546754.zip |
Changed update message to be more instructive, changed update style to be less aggresive
Fix br tags
Improve english messages
-rw-r--r-- | core/css/styles.css | 5 | ||||
-rw-r--r-- | core/templates/update.admin.php (renamed from core/templates/update.php) | 0 | ||||
-rw-r--r-- | core/templates/update.user.php | 8 | ||||
-rw-r--r-- | lib/base.php | 6 |
4 files changed, 17 insertions, 2 deletions
diff --git a/core/css/styles.css b/core/css/styles.css index 62ee0e56cae..9a62fe165a6 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -441,6 +441,11 @@ label.infield { cursor:text !important; top:1.05em; left:.85em; } cursor: default; } +#body-login .update { + text-align: center; + color: #ccc; +} + #body-user .warning, #body-settings .warning { margin-top: 8px; padding: 5px; diff --git a/core/templates/update.php b/core/templates/update.admin.php index a652d5f195a..a652d5f195a 100644 --- a/core/templates/update.php +++ b/core/templates/update.admin.php diff --git a/core/templates/update.user.php b/core/templates/update.user.php new file mode 100644 index 00000000000..bb93f0fad00 --- /dev/null +++ b/core/templates/update.user.php @@ -0,0 +1,8 @@ +<ul> + <li class='update'> + <?php p($l->t('This ownCloud instance is currently being updated, which may take a while.')) ?><br/><br/> + <?php p($l->t('Please reload this page after a short time to continue using ownCloud.')) ?><br/><br/> + <?php p($l->t('Contact your system administrator if this message persists or appeared unexpectedly.')) ?><br/><br/> + <?php p($l->t('Thank you for your patience.')); ?><br/><br/> + </li> +</ul> diff --git a/lib/base.php b/lib/base.php index 62427fa568c..a8ea865e621 100644 --- a/lib/base.php +++ b/lib/base.php @@ -224,7 +224,9 @@ class OC { header('Retry-After: 120'); // render error page - OC_Template::printErrorPage('ownCloud is in maintenance mode'); + $tmpl = new OC_Template('', 'update.user', 'guest'); + $tmpl->printPage(); + die(); } } @@ -240,7 +242,7 @@ class OC { $minimizerJS = new OC_Minimizer_JS(); $minimizerJS->clearCache(); OC_Util::addscript('update'); - $tmpl = new OC_Template('', 'update', 'guest'); + $tmpl = new OC_Template('', 'update.admin', 'guest'); $tmpl->assign('version', OC_Util::getVersionString()); $tmpl->printPage(); exit(); |