Fixed migration page.
This commit is contained in:
parent
305599c8cb
commit
b2176cd030
3 changed files with 15 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -7,6 +7,7 @@
|
|||
# Configuration
|
||||
/config/config.ini
|
||||
/.debug
|
||||
/.migrating
|
||||
|
||||
# Storage
|
||||
/store
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
13
templates/home/migration.twig
Normal file
13
templates/home/migration.twig
Normal 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 %}
|
Loading…
Reference in a new issue