update.admin.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <div class="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="infogroup">
  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="infogroup">
  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="infogroup 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" type="button" value="<?php p($l->t('Start update')) ?>">
  38. <div class="infogroup">
  39. <em>
  40. <?php p($l->t('To avoid timeouts with larger installations, you can instead run the following command from your installation directory:')) ?>
  41. <pre>./occ upgrade</pre>
  42. </em>
  43. </div>
  44. </div>
  45. <div class="update-progress hidden">
  46. <h2 id="update-progress-title"></h2>
  47. <div id="update-progress-icon" class="icon-loading-dark"></div>
  48. <p id="update-progress-message-error" class="hidden"></p>
  49. <ul id="update-progress-message-warnings" class="hidden"></ul>
  50. <p id="update-progress-message"></p>
  51. <a class="update-show-detailed"><?php p($l->t('Detailed logs')); ?> <span class="icon-caret-white"></span></a>
  52. <div id="update-progress-detailed" class="hidden"></div>
  53. </div>
  54. </div>