diff --git a/classes/DocumentationLinks.php b/classes/DocumentationLinks.php index 9d7106a399..212585c3a1 100644 --- a/classes/DocumentationLinks.php +++ b/classes/DocumentationLinks.php @@ -7,6 +7,7 @@ class DocumentationLinks public const DEV_DOC_URL = 'https://devdocs.prestashop-project.org/8'; public const DEV_DOC_UPGRADE_URL = self::DEV_DOC_URL . '/basics/keeping-up-to-date/upgrade-module'; public const DEV_DOC_UPGRADE_CLI_URL = self::DEV_DOC_UPGRADE_URL . '/basics/keeping-up-to-date/upgrade-module/upgrade-cli'; + public const DEV_DOC_UPGRADE_POST_UPGRADE_URL = self:: DEV_DOC_UPGRADE_URL . '/post-update-checklist'; public const PRESTASHOP_PROJECT_URL = 'https://www.prestashop-project.org'; public const PRESTASHOP_PROJECT_DATA_TRANSPARENCY_URL = self::PRESTASHOP_PROJECT_URL . '/data-transparency'; } diff --git a/controllers/admin/self-managed/UpdatePagePostUpdateController.php b/controllers/admin/self-managed/UpdatePagePostUpdateController.php index cd3fe2b376..e8dc012f18 100644 --- a/controllers/admin/self-managed/UpdatePagePostUpdateController.php +++ b/controllers/admin/self-managed/UpdatePagePostUpdateController.php @@ -28,7 +28,10 @@ namespace PrestaShop\Module\AutoUpgrade\Controller; use PrestaShop\Module\AutoUpgrade\Router\Routes; +use PrestaShop\Module\AutoUpgrade\Task\TaskType; use PrestaShop\Module\AutoUpgrade\Twig\UpdateSteps; +use PrestaShop\Module\AutoUpgrade\DocumentationLinks; +use PrestaShop\Module\AutoUpgrade\UpgradeContainer; class UpdatePagePostUpdateController extends AbstractPageWithStepController { @@ -61,8 +64,9 @@ protected function getParams(): array return array_merge( $updateSteps->getStepParams($this::CURRENT_STEP), [ - // TODO - 'backlog_link' => 'https://myshop.com/my-backlog.txt', + 'exit_link' => DIRECTORY_SEPARATOR . $this->upgradeContainer->getProperty(UpgradeContainer::PS_ADMIN_SUBDIR) . DIRECTORY_SEPARATOR . 'index.php', + 'dev_doc_link' => DocumentationLinks::DEV_DOC_UPGRADE_POST_UPGRADE_URL, + 'download_logs' => $this->upgradeContainer->getLogsService()->getDownloadLogsData(TaskType::TASK_TYPE_UPDATE) ] ); } diff --git a/views/templates/steps/post-update.html.twig b/views/templates/steps/post-update.html.twig index 8eb762215b..9995ece0cd 100644 --- a/views/templates/steps/post-update.html.twig +++ b/views/templates/steps/post-update.html.twig @@ -65,23 +65,25 @@ + {% if download_logs is defined %}
- - {{ 'Download update logs'|trans({}) }} + + {{ download_logs.button_label }} file_upload
+ {% endif %} {% endblock %} {% block buttons_inner %} - + - + {% endblock %}