update.admin.php 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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('%s will be updated to version %s',
  7. array($_['productName'], $_['version']))); ?></h2>
  8. <?php } ?>
  9. <?php if (!empty($_['appsToUpgrade'])) { ?>
  10. <div class="infogroup">
  11. <span><?php p($l->t('These 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.', array($_['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" type="button" value="<?php p($l->t('Start update')) ?>">
  38. <div class="infogroup">
  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="warning hidden"></p>
  47. <ul id="update-progress-message-warnings" class="warning hidden"></ul>
  48. <p id="update-progress-message"></p>
  49. <a class="update-show-detailed"><?php p($l->t( 'Detailed logs' )); ?> <img class="svg" src="<?php print_unescaped(image_path('', 'actions/caret.svg')); ?>" /></a>
  50. <div id="update-progress-detailed" class="hidden warning"></div>
  51. </div>
  52. </div>