diff --git a/.gitignore b/.gitignore index 18d196ae..a7a6ac98 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ # Configuration /config/config.ini /.debug +/.migrating # Storage /store diff --git a/misuzu.php b/misuzu.php index a8a9c4e4..00e696d1 100644 --- a/misuzu.php +++ b/misuzu.php @@ -390,10 +390,7 @@ MIG; if (file_exists(MSZ_ROOT . '/.migrating')) { http_response_code(503); - echo tpl_render('auth.lockdown', [ - 'message' => "The site is currently updating, this shouldn't take long.
Retry", - 'message_title' => ' Updating', - ]); + echo tpl_render('home.migration'); exit; } diff --git a/templates/home/migration.twig b/templates/home/migration.twig new file mode 100644 index 00000000..4d9aff5e --- /dev/null +++ b/templates/home/migration.twig @@ -0,0 +1,13 @@ +{% extends 'master_minimal.twig' %} +{% from 'macros.twig' import container_title %} + +{% block content %} +
+ {{ container_title(' Updating') }} + +
+

The site is currently updating, this shouldn't take long.

+

Retry

+
+
+{% endblock %}