1
0

update.admin.php 2.3 KB

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