update.admin.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2013-2015 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. ?>
  8. <div class="guest-box update" data-productname="<?php p($_['productName']) ?>" data-version="<?php p($_['version']) ?>">
  9. <div class="updateOverview">
  10. <?php if ($_['isAppsOnlyUpgrade']) { ?>
  11. <h2 class="title"><?php p($l->t('App update required')); ?></h2>
  12. <?php } else { ?>
  13. <h2 class="title"><?php p($l->t('%1$s will be updated to version %2$s',
  14. [$_['productName'], $_['version']])); ?></h2>
  15. <?php } ?>
  16. <?php if (!empty($_['appsToUpgrade'])) { ?>
  17. <div class="text-left">
  18. <span><?php p($l->t('The following apps will be updated:')); ?></span>
  19. <ul class="content appList">
  20. <?php foreach ($_['appsToUpgrade'] as $appInfo) { ?>
  21. <li><?php p($appInfo['name']) ?> (<?php p($appInfo['id']) ?>)</li>
  22. <?php } ?>
  23. </ul>
  24. </div>
  25. <?php } ?>
  26. <?php if (!empty($_['incompatibleAppsList'])) { ?>
  27. <div class="text-left">
  28. <span><?php p($l->t('These incompatible apps will be disabled:')) ?></span>
  29. <ul class="content appList">
  30. <?php foreach ($_['incompatibleAppsList'] as $appInfo) { ?>
  31. <li><?php p($appInfo['name']) ?> (<?php p($appInfo['id']) ?>)</li>
  32. <?php } ?>
  33. </ul>
  34. </div>
  35. <?php } ?>
  36. <?php if (!empty($_['oldTheme'])) { ?>
  37. <div class="infogroup">
  38. <?php p($l->t('The theme %s has been disabled.', [$_['oldTheme']])) ?>
  39. </div>
  40. <?php } ?>
  41. <div class="text-left margin-top bold">
  42. <?php p($l->t('Please make sure that the database, the config folder and the data folder have been backed up before proceeding.')) ?>
  43. </div>
  44. <input class="updateButton primary margin-top" type="button" value="<?php p($l->t('Start update')) ?>">
  45. <div class="notecard warning">
  46. <?php p($l->t('To avoid timeouts with larger installations, you can instead run the following command from your installation directory:')) ?>
  47. <pre>./occ upgrade</pre>
  48. </div>
  49. </div>
  50. <div class="update-progress hidden">
  51. <h2 id="update-progress-title"></h2>
  52. <div id="update-progress-icon" class="icon-loading-dark"></div>
  53. <p id="update-progress-message-error" class="hidden"></p>
  54. <ul id="update-progress-message-warnings" class="hidden"></ul>
  55. <p id="update-progress-message"></p>
  56. <a class="update-show-detailed"><?php p($l->t('Detailed logs')); ?> <span class="icon-caret-white"></span></a>
  57. <div id="update-progress-detailed" class="hidden"></div>
  58. </div>
  59. </div>