diff --git a/contrib/downtime/theme.php b/contrib/downtime/theme.php index a400a3d2..749a47c1 100644 --- a/contrib/downtime/theme.php +++ b/contrib/downtime/theme.php @@ -13,14 +13,41 @@ class DowntimeTheme extends Themelet { * Display $message and exit */ public function display_message($message) { + global $config; + $theme_name = $config->get_string('theme'); + $data_href = get_base_href(); + $login_link = make_link("user_admin/login"); header("HTTP/1.0 503 Service Temporarily Unavailable"); + print << Downtime + - $message +
+

Down for Maintenance

+
+ $message +
+

Admin Login

+
+
+ + + + + + + + + + +
+
+
+
EOD; diff --git a/ext/user/theme.php b/ext/user/theme.php index dedca22a..a31ecbf1 100644 --- a/ext/user/theme.php +++ b/ext/user/theme.php @@ -78,11 +78,17 @@ class UserPageTheme extends Themelet { global $config; $html = "
- - - - -
Name
Password
+ + + + + + + + + + +
"; if($config->get_bool("login_signup_enabled")) { diff --git a/themes/default/style.css b/themes/default/style.css index b28c73ba..16cc31b2 100644 --- a/themes/default/style.css +++ b/themes/default/style.css @@ -225,3 +225,13 @@ UL { margin-bottom: 32px; } +#downtime #message, #downtime #login { + text-align: center; +} +#downtime H3 { + margin-top: 32px; +} +#downtime #login_table { + margin: auto; +} +