Added maintenance mode view.
Refs: https://github.com/octobercms/october/issues/2830
This commit is contained in:
parent
7590dfd30f
commit
019b0a3a6c
|
|
@ -456,6 +456,12 @@ return [
|
|||
'label' => 'Page error',
|
||||
'help' => "We're sorry, but something went wrong and the page cannot be displayed."
|
||||
],
|
||||
'maintenance' => [
|
||||
'label' => "We'll be right back!",
|
||||
'help' => "We're currently down for maintenance, check back soon!",
|
||||
'message' => "Message:",
|
||||
'available_at' => "Try again after:",
|
||||
],
|
||||
],
|
||||
'pagination' => [
|
||||
'previous' => 'Previous',
|
||||
|
|
|
|||
|
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="<?= App::getLocale() ?>">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title><?= Lang::get('system::lang.page.maintenance.label') ?></title>
|
||||
<link href="<?= Url::asset('/modules/system/assets/css/styles.css') ?>" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1><i class="icon-wrench warning"></i> <?= Lang::get('system::lang.page.maintenance.label') ?></h1>
|
||||
<p class="lead"><?= Lang::get('system::lang.page.maintenance.help') ?></p>
|
||||
<p class="lead">
|
||||
<?php if ($message) : ?>
|
||||
<strong><?= Lang::get('system::lang.page.maintenance.message') ?></strong> <?= $message; ?><br />
|
||||
<?php endif; ?>
|
||||
<?php if ($willBeAvailableAt) : ?>
|
||||
<strong><?= Lang::get('system::lang.page.maintenance.available_at') ?></strong> <?= $willBeAvailableAt; ?><br />
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue