summaryrefslogtreecommitdiff
path: root/resources/views/layouts
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2017-11-11 21:51:31 +0000
committerGreg Roach <fisharebest@gmail.com>2017-11-11 21:51:31 +0000
commit35e2e946f342051d77c0da0b3dc48a896b1ed34a (patch)
treef168f074be74328782a0299ac2ab27b681cd34aa /resources/views/layouts
parentd83ab2d7059ca6b5039167717eccf478ee229185 (diff)
downloadwebtrees-35e2e946f342051d77c0da0b3dc48a896b1ed34a.tar.gz
webtrees-35e2e946f342051d77c0da0b3dc48a896b1ed34a.tar.bz2
webtrees-35e2e946f342051d77c0da0b3dc48a896b1ed34a.zip
Use views/template for DB connection errors
Diffstat (limited to 'resources/views/layouts')
-rw-r--r--resources/views/layouts/error.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/resources/views/layouts/error.php b/resources/views/layouts/error.php
new file mode 100644
index 0000000000..c2fb86a60a
--- /dev/null
+++ b/resources/views/layouts/error.php
@@ -0,0 +1,30 @@
+<?php use Fisharebest\Webtrees\I18N; ?>
+<!DOCTYPE html>
+<html <?= I18N::htmlAttributes() ?>>
+ <head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <meta name="robots" content="noindex">
+
+ <title><?= I18N::translate('This website is temporarily unavailable') ?></title>
+
+ <link rel="icon" href="favicon.ico" type="image/x-icon">
+
+ <style type="text/css">
+ body {color: gray; background-color: white; font: 14px tahoma, arial, helvetica, sans-serif; padding:10px; }
+ a {color: #81A9CB; font-weight: bold; text-decoration: none;}
+ a:hover {text-decoration: underline;}
+ h1 {color: #81A9CB; font-weight:normal; text-align:center;}
+ li {line-height:2;}
+ blockquote {color:red;}
+ .content { border:1px solid gray; padding:15px; margin: 15px; border-radius:15px;}
+ .good {color: green;}
+ </style>
+ </head>
+
+ <body>
+ <h1><?= I18N::translate('This website is temporarily unavailable') ?></h1>
+
+ <?= $content ?>
+ </body>
+</html>