Fixed migration page.

This commit is contained in:
flash 2019-03-10 02:05:40 +01:00
parent 305599c8cb
commit b2176cd030
3 changed files with 15 additions and 4 deletions

1
.gitignore vendored
View file

@ -7,6 +7,7 @@
# Configuration
/config/config.ini
/.debug
/.migrating
# Storage
/store

View file

@ -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.<br><a href='javascript:location.reload(true)' class='link'>Retry</a>",
'message_title' => '<i class="fas fa-wrench"></i> Updating',
]);
echo tpl_render('home.migration');
exit;
}

View file

@ -0,0 +1,13 @@
{% extends 'master_minimal.twig' %}
{% from 'macros.twig' import container_title %}
{% block content %}
<div class="container" style="max-width: 400px; margin: 2px auto">
{{ container_title('<i class="fas fa-wrench"></i> Updating') }}
<div style="margin: 5px;">
<p style="margin: 5px 0">The site is currently updating, this shouldn't take long.</p>
<p style="text-align: center"><a href="javascript:location.reload(true)" class="input__button">Retry</a></p>
</div>
</div>
{% endblock %}