diff --git a/core/css/apps.css b/core/css/apps.css index 3ffa7d8709..0ccdb8a039 100644 --- a/core/css/apps.css +++ b/core/css/apps.css @@ -550,6 +550,7 @@ h2 { font-size: 20px; font-weight: 300; margin-bottom: 12px; + line-height: 140%; } h3 { font-size: 15px; diff --git a/core/css/styles.css b/core/css/styles.css index a8e632c594..7f4f7896c9 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -242,7 +242,7 @@ a.two-factor-cancel { } #body-login .update h2 { - margin: 12px 0 20px; + margin: 0 0 20px; } #body-login .update a { diff --git a/core/css/update.css b/core/css/update.css index 0c42449b07..12cda3d5bb 100644 --- a/core/css/update.css +++ b/core/css/update.css @@ -7,6 +7,7 @@ #update-progress-message-error, #update-progress-message-warnings { font-weight: 600; + margin-bottom: 10px; } #update-progress-message { @@ -16,6 +17,7 @@ .update-show-detailed { padding: 13px; display: block; + opacity: .75; } #body-login .update a.update-show-detailed { diff --git a/core/js/update.js b/core/js/update.js index e692a7312b..32cf2ce5ec 100644 --- a/core/js/update.js +++ b/core/js/update.js @@ -13,7 +13,7 @@ _started : false, /** - * Start the upgrade process. + * Start the update process. * * @param $el progress list element */ @@ -31,12 +31,12 @@ var self = this; $(window).on('beforeunload.inprogress', function () { - return t('core', 'The upgrade is in progress, leaving this page might interrupt the process in some environments.'); + return t('core', 'The update is in progress, leaving this page might interrupt the process in some environments.'); }); $('#update-progress-title').html(t( 'core', - 'Updating to {version}', { + 'Update to {version}', { version: options.version }) ); @@ -91,17 +91,15 @@ if (hasWarnings) { $el.find('.update-show-detailed').before( - $('') - .append('
') - .append(t('core', 'The update was successful. There were warnings.')) + $('').on('click', function() { + window.location.reload(); + }) ); - var message = t('core', 'Please reload the page.'); - $('').append(message).append('
').appendTo($el); } else { // FIXME: use product name - $('') - .append(t('core', 'The update was successful. Redirecting you to Nextcloud now.')) - .appendTo($el); + $el.find('.update-show-detailed').before( + $('

'+t('core', 'The update was successful. Redirecting you to Nextcloud now.')+'

') + ); setTimeout(function () { OC.redirect(OC.webroot + '/'); }, 3000); @@ -127,7 +125,7 @@ .append(message) .append($('
')); }, - + setErrorMessage: function (message) { $('#update-progress-message-error') .show() diff --git a/core/templates/update.admin.php b/core/templates/update.admin.php index 967160af66..aaeacea993 100644 --- a/core/templates/update.admin.php +++ b/core/templates/update.admin.php @@ -36,8 +36,10 @@
+ t('To avoid timeouts with larger installations, you can instead run the following command from your installation directory:')) ?>
./occ upgrade
+
@@ -48,6 +50,6 @@

t( 'Detailed logs' )); ?> - + diff --git a/lib/base.php b/lib/base.php index d22490ca5d..4bb7052aa5 100644 --- a/lib/base.php +++ b/lib/base.php @@ -359,7 +359,7 @@ class OC { // render error page $template = new OC_Template('', 'update.use-cli', 'guest'); - $template->assign('productName', 'owncloud'); // for now + $template->assign('productName', 'nextcloud'); // for now $template->assign('version', OC_Util::getVersionString()); $template->assign('tooBig', $tooBig); @@ -390,7 +390,7 @@ class OC { $ocVersion = \OCP\Util::getVersion(); $tmpl->assign('appsToUpgrade', $appManager->getAppsNeedingUpgrade($ocVersion)); $tmpl->assign('incompatibleAppsList', $appManager->getIncompatibleApps($ocVersion)); - $tmpl->assign('productName', 'ownCloud'); // for now + $tmpl->assign('productName', 'Nextcloud'); // for now $tmpl->assign('oldTheme', $oldTheme); $tmpl->printPage(); }