nextcloud/core/templates/update.admin.php

56 lines
2.3 KiB
PHP
Raw Normal View History

<div class="update" data-productname="<?php p($_['productName']) ?>" data-version="<?php p($_['version']) ?>">
<div class="updateOverview">
<?php if ($_['isAppsOnlyUpgrade']) { ?>
2015-11-05 18:36:37 +03:00
<h2 class="title"><?php p($l->t('App update required')); ?></h2>
<?php } else { ?>
2015-11-05 18:36:37 +03:00
<h2 class="title"><?php p($l->t('%s will be updated to version %s',
array($_['productName'], $_['version']))); ?></h2>
<?php } ?>
<?php if (!empty($_['appsToUpgrade'])) { ?>
<div class="infogroup">
<span><?php p($l->t('These apps will be updated:')); ?></span>
<ul class="content appList">
<?php foreach ($_['appsToUpgrade'] as $appInfo) { ?>
<li><?php p($appInfo['name']) ?> (<?php p($appInfo['id']) ?>)</li>
<?php } ?>
</ul>
</div>
<?php } ?>
<?php if (!empty($_['incompatibleAppsList'])) { ?>
2014-05-27 18:36:21 +04:00
<div class="infogroup">
<span><?php p($l->t('These incompatible apps will be disabled:')) ?></span>
2014-05-26 20:43:26 +04:00
<ul class="content appList">
<?php foreach ($_['incompatibleAppsList'] as $appInfo) { ?>
<li><?php p($appInfo['name']) ?> (<?php p($appInfo['id']) ?>)</li>
<?php } ?>
2014-05-26 20:43:26 +04:00
</ul>
</div>
<?php } ?>
<?php if (!empty($_['oldTheme'])) { ?>
<div class="infogroup">
<?php p($l->t('The theme %s has been disabled.', array($_['oldTheme']))) ?>
2014-05-26 20:43:26 +04:00
</div>
<?php } ?>
<div class="infogroup bold">
<?php p($l->t('Please make sure that the database, the config folder and the data folder have been backed up before proceeding.')) ?>
2014-05-26 20:43:26 +04:00
</div>
<input class="updateButton" type="button" value="<?php p($l->t('Start update')) ?>">
2014-08-18 17:05:55 +04:00
<div class="infogroup">
<em>
2014-08-18 17:05:55 +04:00
<?php p($l->t('To avoid timeouts with larger installations, you can instead run the following command from your installation directory:')) ?>
<pre>./occ upgrade</pre>
</em>
2014-08-18 17:05:55 +04:00
</div>
2014-05-26 20:43:26 +04:00
</div>
<div class="update-progress hidden">
<h2 id="update-progress-title"></h2>
<div id="update-progress-icon" class="icon-loading-dark"></div>
<p id="update-progress-message-error" class="hidden"></p>
<ul id="update-progress-message-warnings" class="hidden"></ul>
<p id="update-progress-message"></p>
2016-06-23 14:39:28 +03:00
<a class="update-show-detailed"><?php p($l->t( 'Detailed logs' )); ?> <img src="<?php print_unescaped(image_path('', 'actions/caret.svg')); ?>" /></a>
<div id="update-progress-detailed" class="hidden"></div>
</div>
2014-05-26 20:43:26 +04:00
</div>